DEV Community

Discussion on: Build Restful API with Nodejs Express MongoDB

Collapse
 
sanjaysaini2000 profile image
Sanjay Saini

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...

Collapse
 
romanazeem profile image
Roman Azeem

I got it. Thank man for sorting this out for me.