router vs app express

Solutions on MaxInterview for router vs app express by the best coders in the world

showing results for - "router vs app express"
Paolo
11 Feb 2020
1var express = require('express'),
2    dogs    = require('./routes/dogs'),
3    cats    = require('./routes/cats'),
4    birds   = require('./routes/birds');
5
6var app = express();
7
8app.use('/dogs',  dogs);
9app.use('/cats',  cats);
10app.use('/birds', birds);
11
12app.listen(3000);
13
similar questions
queries leading to this page
router vs app express