Cleaned up the loaders

ref #11
This commit is contained in:
2020-12-05 19:09:08 +01:00
parent a3a809bb40
commit f58a715c45
4 changed files with 19 additions and 4 deletions

View File

@@ -1,7 +1,9 @@
import { Application } from "express";
import bodyParser from 'body-parser';
import cors from 'cors';
/**
* Loader for express related configurations.
* Currently only enables the proxy trust.
*/
export default async (app: Application) => {
app.enable('trust proxy');
return app;