How To Build Simple RESTful API With NodeJs, ExpressJs And MongoDb
David Inyang-Etoh
79411

Hello Sir, thanks for the tutorial, it helped me a lot.

Just a comment, its missing one }

// Filename: api-routes.js
// Initialize express router
let router = require('express').Router();
// Set default API response
router.get('/', function (req, res) {
res.json({
status: 'API Its Working',
message: 'Welcome to RESTHub crafted with love!',
HERE--------->_);
});
// Export API routes
module.exports = router;

Thanks again =]