feat(frontend): Vue (CDN) UI matching templates design; reuse /static CSS and Bootstrap; mount /static in FastAPI

This commit is contained in:
Danamir
2025-11-10 08:45:25 +03:00
parent 779c256e7b
commit 3f91dc91ec
3 changed files with 115 additions and 97 deletions

View File

@@ -30,7 +30,8 @@ def ping():
return {"message": "pong"}
# Serve static frontend
# Serve static assets and frontend
app.mount("/static", StaticFiles(directory="static"), name="static")
app.mount("/app", StaticFiles(directory="frontend", html=True), name="frontend")
@app.get("/")