Add analytics service to v3

This commit is contained in:
Blade Barringer
2015-11-11 06:36:28 -06:00
parent c91c3f78ed
commit cdb05e1b42
6 changed files with 608 additions and 0 deletions

View File

@@ -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);
}