/sport/* aliases u app: admin, dokumenti, crm/v2, erp/full

This commit is contained in:
2026-05-05 14:13:32 +02:00
parent 360b8008ba
commit 448273945c
4 changed files with 321 additions and 903 deletions
+11
View File
@@ -1788,6 +1788,8 @@ def serve_sport_3d():
@app.get("/admin")
@app.get("/admin/")
@app.get("/sport/admin")
@app.get("/sport/admin/")
def serve_admin():
p = HTML_DIR / "admin.html"
if p.exists():
@@ -1806,6 +1808,8 @@ def serve_erp():
@app.get("/erp/full")
@app.get("/erp/full/")
@app.get("/sport/erp/full")
@app.get("/sport/erp")
def serve_erp_full():
p = HTML_DIR / "erp_full.html"
if p.exists():
@@ -1843,6 +1847,9 @@ def serve_crm():
@app.get("/crm_v2/")
@app.get("/crm/v2")
@app.get("/crm")
@app.get("/sport/crm")
@app.get("/sport/crm/v2")
@app.get("/sport/crm_v2")
def serve_crm_v2():
p = HTML_DIR / "crm_v2.html"
if p.exists():
@@ -1859,6 +1866,8 @@ def serve_login():
@app.get("/admin/users")
@app.get("/admin/users/")
@app.get("/sport/admin/users")
@app.get("/sport/admin/users/")
def serve_admin_users():
p = HTML_DIR / "admin_users.html"
if p.exists():
@@ -2097,6 +2106,8 @@ def serve_kpi():
@app.get("/dokumenti")
@app.get("/dokumenti/")
@app.get("/sport/dokumenti")
@app.get("/sport/dokumenti/")
def serve_dokumenti():
p = HTML_DIR / "dokumenti.html"
return FileResponse(p) if p.exists() else {"error":"dokumenti.html not found"}