From 08e280d617ca9916618f32250916ed23aa3952e6 Mon Sep 17 00:00:00 2001 From: Ruslan Bakiev <572431+veikab@users.noreply.github.com> Date: Sat, 7 Mar 2026 12:45:03 +0700 Subject: [PATCH] feat: real URL routes for tabs (/detection, /court, /trajectory) Co-Authored-By: Claude Opus 4.6 --- src/web/app.py | 5 +++-- src/web/templates/index.html | 21 +++++++++++++-------- 2 files changed, 16 insertions(+), 10 deletions(-) diff --git a/src/web/app.py b/src/web/app.py index 9fb4166..66df2f3 100644 --- a/src/web/app.py +++ b/src/web/app.py @@ -29,8 +29,9 @@ state = { @app.route('/') -def index(): - return render_template('index.html') +@app.route('/') +def index(tab='detection'): + return render_template('index.html', active_tab=tab) @app.route('/frame/') diff --git a/src/web/templates/index.html b/src/web/templates/index.html index 5b4c175..137c170 100644 --- a/src/web/templates/index.html +++ b/src/web/templates/index.html @@ -367,7 +367,7 @@