updated admin page with more functionality, simplified burger menu and added many-to-many parent-child relationship
This commit is contained in:
@@ -119,6 +119,18 @@ def serve_sleep() -> FileResponse:
|
||||
return FileResponse(static_path / "sleep.html")
|
||||
|
||||
|
||||
@app.get("/menu.css", include_in_schema=False)
|
||||
def serve_menu_css() -> FileResponse:
|
||||
"""Serve the shared menu CSS."""
|
||||
return FileResponse(static_path / "menu.css")
|
||||
|
||||
|
||||
@app.get("/menu.js", include_in_schema=False)
|
||||
def serve_menu_js() -> FileResponse:
|
||||
"""Serve the shared menu JavaScript."""
|
||||
return FileResponse(static_path / "menu.js")
|
||||
|
||||
|
||||
@app.get("/api/")
|
||||
def read_root(token: Annotated[str, Depends(verify_token)]) -> dict:
|
||||
"""API root endpoint (requires authentication)."""
|
||||
|
||||
Reference in New Issue
Block a user