Added loaders

This commit is contained in:
2021-01-30 17:27:25 +01:00
parent 6539fd7855
commit 57afbd4b6c
2 changed files with 24 additions and 0 deletions

13
src/loaders/index.ts Normal file
View File

@@ -0,0 +1,13 @@
import { Application } from "express";
import expressLoader from "./express";
import openapiLoader from "./openapi";
/**
* Index Loader that executes the other loaders in the right order.
* This basicly exists for abstraction and a overall better dev experience.
*/
export default async (app: Application) => {
await openapiLoader(app);
await expressLoader(app);
return app;
};