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:
parent
160e393a00
commit
a462faf2bf
@ -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)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user