Added basic loaders/files/dirs

This commit is contained in:
2021-03-01 17:20:39 +01:00
parent a1fbabdee8
commit 4e80aa8a32
13 changed files with 9516 additions and 0 deletions

11
src/loaders/express.ts Normal file
View File

@@ -0,0 +1,11 @@
import { Application } from "express";
/**
* Loader for express related configurations.
* Configures proxy trusts, globally used middlewares and other express features.
*/
export default async (app: Application) => {
app.enable('trust proxy');
app.disable('x-powered-by');
app.disable('x-served-by');
return app;
};