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

Fixed redirect from old API endpoints, GH-31

This commit is contained in:
Krateng 2020-09-06 16:56:22 +02:00
parent c1a4d5a4ee
commit f4a563f080
No known key found for this signature in database
GPG Key ID: 46735607861C6FCE
3 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ Also neat: You can use your **custom artist or track images**.
### Environment
I can support you with issues best if you use **Alpine Linux**. In my experience, **2 GB RAM** should do nicely, but higher amounts allow more caching and reduce page load times for complicated statistics.
I can support you with issues best if you use **Alpine Linux**. In my experience, **2 GB RAM** should do nicely, but higher amounts allow more caching and reduce page load times for complicated statistics. My personal recommendation is using a dedicated LXC container (e.g. on Proxmox), but of course Maloja will also run on a VM, in Docker or on bare metal.
### New Installation

View File

@ -5,7 +5,7 @@ author = {
"email":"maloja@krateng.dev",
"github": "krateng"
}
version = 2,9,6
version = 2,9,7
versionstr = ".".join(str(n) for n in version)
links = {
"pypi":"malojaserver",

View File

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