Commit 29faa44b95ac620aa16c2f38c577b3e36f030d98
1 parent
113791ad
Exists in
master
and in
1 other branch
update routers
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
app.js
... | ... | @@ -5,7 +5,7 @@ var logger = require('morgan'); |
5 | 5 | var cookieParser = require('cookie-parser'); |
6 | 6 | var bodyParser = require('body-parser'); |
7 | 7 | |
8 | -var index = require('./routes/CMF/index'); | |
8 | +var cmf = require('./routes/CMF/index'); | |
9 | 9 | var users = require('./routes/users'); |
10 | 10 | |
11 | 11 | var app = express(); |
... | ... | @@ -23,7 +23,7 @@ app.use(bodyParser.urlencoded({ extended: false })); |
23 | 23 | app.use(cookieParser()); |
24 | 24 | app.use(express.static(path.join(__dirname, 'public'))); |
25 | 25 | |
26 | -app.use(prefixUrl + '/', index); | |
26 | +app.use(prefixUrl + '/', cmf); | |
27 | 27 | app.use('/users', users); |
28 | 28 | app.listen(3000, () => console.log('Example app listening on port 3000!')) |
29 | 29 | ... | ... |