feat(frontend): Vue (CDN) UI matching templates design; reuse /static CSS and Bootstrap; mount /static in FastAPI
This commit is contained in:
@@ -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("/")
|
||||
|
||||
Reference in New Issue
Block a user