mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Add analytics service to v3
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
// This module is only used to attach middlewares to the express app
|
||||
|
||||
import analytics from './analytics';
|
||||
import errorHandler from './errorHandler';
|
||||
import bodyParser from 'body-parser';
|
||||
|
||||
@@ -11,6 +12,8 @@ export default function attachMiddlewares (app) {
|
||||
}));
|
||||
app.use(bodyParser.json());
|
||||
|
||||
app.use(analytics);
|
||||
|
||||
// Error handler middleware, define as the last one
|
||||
app.use(errorHandler);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user