From f4a563f080f7dba336034feb1c0c42057f8d8d8c Mon Sep 17 00:00:00 2001 From: Krateng Date: Sun, 6 Sep 2020 16:56:22 +0200 Subject: [PATCH] Fixed redirect from old API endpoints, GH-31 --- README.md | 2 +- maloja/__pkginfo__.py | 2 +- maloja/server.py | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index e1ca3c3..9beba4d 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/maloja/__pkginfo__.py b/maloja/__pkginfo__.py index 6c415b5..5bd12ee 100644 --- a/maloja/__pkginfo__.py +++ b/maloja/__pkginfo__.py @@ -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", diff --git a/maloja/server.py b/maloja/server.py index adece68..942d51d 100755 --- a/maloja/server.py +++ b/maloja/server.py @@ -63,12 +63,12 @@ init_apis(webserver) @webserver.get("/api/s/") @webserver.post("/api/s/") def deprecated_api_s(pth): - redirect("/apis/" + pth + "?" + request.query_string) + redirect("/apis/" + pth + "?" + request.query_string,307) @webserver.get("/api/") @webserver.post("/api/") def deprecated_api(pth): - redirect("/apis/mlj_1/" + pth + "?" + request.query_string) + redirect("/apis/mlj_1/" + pth + "?" + request.query_string,307)