basic loaders logic

This commit is contained in:
2020-11-25 17:57:32 +01:00
parent d7b5563d0f
commit ab0e925ab3
3 changed files with 17 additions and 0 deletions

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

@@ -0,0 +1,14 @@
import express from 'express';
import bodyParser from 'body-parser';
import cors from 'cors';
export default async (app) => {
app.get('/status', (req, res) => res.status(200).end());
app.enable('trust proxy');
app.use(cors());
// app.use(bodyParser.urlencoded({ extended: false }));
// more middlewares
return app;
};