Closed parisholley closed 10 years ago
If you nest routers, in express 4 it will keep track of the mounted path so you can see the true URL.
var router1 = require('express').Router(); var router2 = require('express').Router(); router2.get('/in', function (req, res) { res.send('Hello World'); }); router1.use('/test', router2); app.use('/out', router1);
If you nest routers, in express 4 it will keep track of the mounted path so you can see the true URL.