Convert classes to use Babel syntax

This commit is contained in:
Blade Barringer
2015-11-04 20:47:32 -06:00
parent 2f6f0eb933
commit d5736e1178
4 changed files with 20 additions and 35 deletions

View File

@@ -1,10 +1,9 @@
'use strict';
// This module is only used to attach middlewares to the express app
let errorHandler = require('./errorHandler');
import errorHandler from './errorHandler';
export default function middleware (app) {
module.exports = function attachMiddlewares (app) {
// Error handler middleware, define as the last one
app.use(errorHandler);
};
};