like first i did this
let express=require(‘express’) let server=express() console.log(“hey”) server.get(’/’,function(req,res,next){ res.send(“hello”) }) server.listen(2121)
worked fine but then i added one more get
let express=require(‘express’) let server=express() console.log(“hey”) server.get(’/’,function(req,res,next){ res.send(“hello”) }) server.get(’/greet/:name’ ,function(req,res,next){ console.log(“yo1”) res.send(“hello there”+req.params.name) }) server.listen(2121)
this code does not work for /add