Add manage route to app.js
parent
a6e8e924e4
commit
7baa986a30
3
app.js
3
app.js
|
@ -8,6 +8,7 @@ var indexRouter = require('./routes/index');
|
|||
var usersRouter = require('./routes/users');
|
||||
var submitRouter = require('./routes/submit');
|
||||
var dataRouter = require('./routes/data');
|
||||
var manageRouter = require('./routes/manage');
|
||||
|
||||
var app = express();
|
||||
|
||||
|
@ -25,6 +26,8 @@ app.use('/', indexRouter);
|
|||
app.use('/users', usersRouter);
|
||||
app.use('/submit', submitRouter);
|
||||
app.use('/data', dataRouter);
|
||||
app.use('/manage', manageRouter);
|
||||
|
||||
|
||||
// catch 404 and forward to error handler
|
||||
app.use(function(req, res, next) {
|
||||
|
|
Reference in New Issue