You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
4. Adding dependencies included with express-generator
npm install
Trying running the program now
npm start
Change the users route to look like this
varexpress=require('express');varrouter=express.Router();/* GET @ /email */router.get('/',function(req,res,next){res.json({"message": "Welcome to the email API @/email"});console.log("Welcome to the email API @/email");});module.exports=router;
Remember to rename the file to email.js & change variables in app.js accordingly