mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
remove old module.exports from server aswell
This commit is contained in:
@@ -18,7 +18,7 @@ const TOP_LEVEL_ROUTES = [
|
||||
// handler because they don't have any child route
|
||||
];
|
||||
|
||||
module.exports = function NotFoundMiddleware (req, res, next) {
|
||||
export default function NotFoundMiddleware (req, res, next) {
|
||||
const reqUrl = req.originalUrl;
|
||||
|
||||
const isExistingRoute = TOP_LEVEL_ROUTES.find(routeRoot => {
|
||||
@@ -31,4 +31,4 @@ module.exports = function NotFoundMiddleware (req, res, next) {
|
||||
} else {
|
||||
serveClient(res);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user