refactor: update all

This commit is contained in:
openstappsbot
2021-03-29 04:14:49 +00:00
committed by Rainer Killinger
parent 31acec2a05
commit ff9fb49deb
3 changed files with 1304 additions and 1925 deletions

View File

@@ -85,7 +85,7 @@ export async function configureApp(app: Express, databases: {[name: string]: Dat
// TODO: See if it can handle options request with no content-type
// allow cors preflight requests on every route
app.options('*', cors(corsOptions));
app.options('*', [cors(corsOptions)]);
// only accept json as content type for all requests
app.use((req, res, next) => {