From 4eff7bf3ba0bf8ab7f8f9e206d1b918c865a1160 Mon Sep 17 00:00:00 2001 From: vfbd Date: Wed, 10 Aug 2022 18:22:46 -0400 Subject: [PATCH] /api now redirects to /api/latest --- aiserver.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aiserver.py b/aiserver.py index d4d34ac8..a434f18b 100644 --- a/aiserver.py +++ b/aiserver.py @@ -2599,6 +2599,9 @@ def index(): return render_template('index_new.html', hide_ai_menu=args.noaimenu) else: return render_template('index.html', hide_ai_menu=args.noaimenu, flaskwebgui=vars.flaskwebgui) +@app.route('/api', strict_slashes=False) +def api(): + return redirect('/api/latest') @app.route('/favicon.ico') def favicon(): return send_from_directory(app.root_path,