lighthouse.js/server/routes/index.js
Fillerino 1bcc272e0b Added the basic structure and fixed some issues!
Added the basic structure and fixed some issues!
Fixes #2, fixes # 3
2017-08-16 19:49:27 +02:00

13 lines
290 B
JavaScript

import routesLoader from '../utils/routesLoader';
export default function (app) {
routesLoader(`${__dirname}`).then((files) => {
files.forEach((route) => {
app
.use(route.routes())
.use(route.allowedMethods({
throw: true,
}));
});
});
}