Implemented more loaders

ref #4
This commit is contained in:
2020-11-25 18:31:06 +01:00
parent e3883fecbd
commit 6ce88a1e3d
5 changed files with 44 additions and 25 deletions

7
src/loaders/routes.ts Normal file
View File

@@ -0,0 +1,7 @@
import {Application} from "express";
import routerMain from "../routes/index";
export default async (app: Application) => {
app.use('/api/', routerMain);
return app;
};