const  express = require('express');
const app = express();
app.get('/',(req,res)=>{
	res.send('Hello from Rajat');
});

app.get('/example',(req,res)=>{
	res.send('Now you get all exaples publish by Rajat Bose');
});

app.get('/example/:name/:age',(req,res)=>{
	res.send('Now get The Parameter we passed');
	console.log(req.params);
	res.send(req.param.name + ":" + req.param.age);
	
});


app.listen(3000);

Please follow and like us:

0 Comments

Leave a Reply

Your email address will not be published. Required fields are marked *

RSS
Follow by Email