you need to add all the curd operations code for get/post/put/delete in the controller class as I mentioned in the article. you also need to import express and create express.Router object 'router' in the controller class plus few other objects used. you can get source code from my github repo -github.com/sanjaysaini2000/node-ex...
you need to add all the curd operations code for get/post/put/delete in the controller class as I mentioned in the article. you also need to import express and create express.Router object 'router' in the controller class plus few other objects used. you can get source code from my github repo -github.com/sanjaysaini2000/node-ex...
I got it. Thank man for sorting this out for me.