/api now redirects to /api/latest

This commit is contained in:
vfbd 2022-08-10 18:22:46 -04:00
parent f2e2c40bc8
commit 4eff7bf3ba
1 changed files with 3 additions and 0 deletions

View File

@ -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,