mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
Convert classes to use Babel syntax
This commit is contained in:
@@ -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);
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user