There are probably better starting points out there, but really you would just need to delete things from this starter. The biggest difference is that in each controller, instead of calling res.render and returning a page, you would just want to return json. You can easily do this using res.json.
There are probably better starting points out there, but really you would just need to delete things from this starter. The biggest difference is that in each controller, instead of calling
res.render
and returning a page, you would just want to returnjson
. You can easily do this usingres.json
.Link: http://expressjs.com/en/api.html#res.json