Thank you for sharing that.
Actually, this is an extra line that was not supposed to be in this file.
I was trying to reduce the size of the project to make it simpler, but I forgot to remove this call.
You can just remove the following line from the Controller constructor:
this.get = this.get.bind(this);
I already fixed it in the post, sorry for the error.
Hi Muhammad,
Thank you for sharing that.
Actually, this is an extra line that was not supposed to be in this file.
I was trying to reduce the size of the project to make it simpler, but I forgot to remove this call.
You can just remove the following line from the Controller constructor:
this.get = this.get.bind(this);
I already fixed it in the post, sorry for the error.
Let me know if that worked for you.
It worked for me, Thanks a lot .
I also removed
server.get(
/api/post/:params
, PostController.get);from routes.js
Thanks a lot.
Perfect Muhammad, thank you very much!