mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
wip user controllers: local login method
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
// This module is only used to attach middlewares to the express app
|
||||
|
||||
import expressValidator from 'express-validator';
|
||||
import analytics from './analytics';
|
||||
import errorHandler from './errorHandler';
|
||||
import bodyParser from 'body-parser';
|
||||
@@ -19,6 +19,7 @@ export default function attachMiddlewares (app) {
|
||||
extended: true, // Uses 'qs' library as old connect middleware
|
||||
}));
|
||||
app.use(bodyParser.json());
|
||||
app.use(expressValidator()); // TODO config
|
||||
app.use(analytics);
|
||||
|
||||
app.use('/api/v3', routes);
|
||||
|
||||
Reference in New Issue
Block a user