Add auth router to app.js

main
sudoer777 2021-11-24 17:58:28 -07:00
parent 33617a82ec
commit c5f05eebff
2 changed files with 2 additions and 0 deletions

2
app.js
View File

@ -13,6 +13,7 @@ var indexRouter = require('./routes/index');
var usersRouter = require('./routes/users'); var usersRouter = require('./routes/users');
var dataRouter = require('./routes/data'); var dataRouter = require('./routes/data');
var manageRouter = require('./routes/manage'); var manageRouter = require('./routes/manage');
var authRouter = require('./routes/auth');
var app = express(); var app = express();
@ -47,6 +48,7 @@ app.use('/', indexRouter);
app.use('/users', usersRouter); app.use('/users', usersRouter);
app.use('/data', dataRouter); app.use('/data', dataRouter);
app.use('/manage', manageRouter); app.use('/manage', manageRouter);
app.user('/auth', authRouter);
// catch 404 and forward to error handler // catch 404 and forward to error handler