lighthouse.js/server/routes/index.js

14 lines
290 B
JavaScript
Raw Normal View History

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