refactor: update all

This commit is contained in:
openstappsbot
2021-04-27 13:02:09 +02:00
committed by Rainer Killinger
parent 31acec2a05
commit ff9fb49deb
3 changed files with 1304 additions and 1925 deletions
+1 -1
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) => {