backend/src/loaders/express.ts
2020-12-12 19:01:31 +01:00

12 lines
293 B
TypeScript

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;
};