homepage
This commit is contained in:
@@ -233,5 +233,10 @@ async def search(q: str, _: None = Depends(require_access)):
|
||||
return await notes.search_notes(q)
|
||||
|
||||
|
||||
@app.get("/api/homepage")
|
||||
async def homepage_stats(_: None = Depends(require_access)):
|
||||
return await notes.get_homepage_stats()
|
||||
|
||||
|
||||
# Mount static assets last so /api routes take precedence
|
||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
|
||||
Reference in New Issue
Block a user