basic loaders logic
This commit is contained in:
1 parent
d7b5563d0f
commit
ab0e925ab3
3 files changed
+17
No files matched your search
Whitespace-only changes.
@@ -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;
|
||||
};
|
||||
Reference in new issue
Block a user