feat: Update api routes to use similar json format to other routes

This commit is contained in:
2025-10-11 19:16:50 +11:00
parent 8d6acca5e9
commit 0ea9db3473
2 changed files with 60 additions and 43 deletions

View File

@@ -207,6 +207,8 @@ def links_get():
@app.route("/api/<path:function>")
def api_legacy_get(function):
# Check if function is in api blueprint
return redirect(f"/api/v1/{function}", code=301)