1
0
mirror of https://github.com/krateng/maloja.git synced 2023-08-10 21:12:55 +03:00

Changed redirect to more appropriate HTTP code

This commit is contained in:
Krateng 2020-09-06 18:19:48 +02:00
parent 160e393a00
commit a462faf2bf
No known key found for this signature in database
GPG Key ID: 46735607861C6FCE

View File

@ -63,12 +63,12 @@ init_apis(webserver)
@webserver.get("/api/s/<pth:path>") @webserver.get("/api/s/<pth:path>")
@webserver.post("/api/s/<pth:path>") @webserver.post("/api/s/<pth:path>")
def deprecated_api_s(pth): def deprecated_api_s(pth):
redirect("/apis/" + pth + "?" + request.query_string,307) redirect("/apis/" + pth + "?" + request.query_string,308)
@webserver.get("/api/<pth:path>") @webserver.get("/api/<pth:path>")
@webserver.post("/api/<pth:path>") @webserver.post("/api/<pth:path>")
def deprecated_api(pth): def deprecated_api(pth):
redirect("/apis/mlj_1/" + pth + "?" + request.query_string,307) redirect("/apis/mlj_1/" + pth + "?" + request.query_string,308)