1bcc272e0b
Added the basic structure and fixed some issues! Fixes #2, fixes # 3
13 lines
290 B
JavaScript
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,
|
|
}));
|
|
});
|
|
});
|
|
}
|