Added cookie-parser to app.use

ref #25
This commit is contained in:
2020-12-12 19:01:31 +01:00
parent db5da3d3c2
commit c07d40ae93
2 changed files with 4 additions and 2 deletions

View File

@@ -1,10 +1,11 @@
import cookieParser from "cookie-parser";
import { Application } from "express";
/**
* Loader for express related configurations.
* Currently only enables the proxy trust.
*/
export default async (app: Application) => {
app.enable('trust proxy');
app.use(cookieParser());
return app;
};