remove old module.exports from server aswell

This commit is contained in:
Matteo Pagliazzi
2019-10-02 19:45:27 +02:00
parent e0a2528a4f
commit 45f7cf04ab
91 changed files with 116 additions and 127 deletions

View File

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