parent
4e5e08483d
commit
24d890f638
@ -8,8 +8,8 @@ dotenvSafe.config();
|
||||
const PORT = process.env.APP_PORT || 4010;
|
||||
|
||||
const app = createExpressServer({
|
||||
controllers: [__dirname + "/controllers/*.ts"],
|
||||
development: process.env.NODE_ENV === "production",
|
||||
cors: true,
|
||||
routePrefix: "/api",
|
||||
controllers: [__dirname + "/controllers/*.ts"],
|
||||
});
|
||||
|
@ -3,12 +3,6 @@ import bodyParser from 'body-parser';
|
||||
import cors from 'cors';
|
||||
|
||||
export default async (app: Application) => {
|
||||
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;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user