Add Download CSV Url

Dieser Commit ist enthalten in:
Chaoscaot 2023-02-15 20:39:36 +01:00
Ursprung c0cc742051
Commit 989f05395a

Datei anzeigen

@ -50,7 +50,7 @@ val SWAuth = createApplicationPlugin("SWAuth") {
if(call.request.httpMethod == HttpMethod.Options) {
return@onCall
}
val auth = call.request.headers["X-SW-Auth"]
val auth = call.request.headers["X-SW-Auth"] ?: call.request.queryParameters["auth"]
if (auth == null) {
call.respond(HttpStatusCode.Unauthorized, ResponseError("Missing auth header"))
} else if (!isValidCode(auth).first) {