Added basic openapi support

ref #5
This commit is contained in:
2020-11-25 19:28:52 +01:00
parent 8cbcfe7fbb
commit 3ce9a0b21a
4 changed files with 19 additions and 12 deletions

View File

@@ -1,11 +1,11 @@
import expressLoader from "./express";
import routeLoader from "./routes";
import openapiLoader from "./openapi";
import databaseLoader from "./database";
import {Application} from "express";
import { Application } from "express";
export default async (app: Application) => {
await databaseLoader();
await openapiLoader(app);
await expressLoader(app);
await routeLoader(app);
return app;
};