Fix missing await on async _get in route handlers

This commit is contained in:
brutsalvadi
2026-05-07 22:41:12 +02:00
parent 0fc1a2dc28
commit ccb0d20454
+1 -1
View File
@@ -314,7 +314,7 @@ async def list_pages(user: User = Depends(require_auth)) -> JSONResponse:
@app.get("/pages/{slug:path}")
async def get_page(slug: str, user: User = Depends(require_auth)) -> JSONResponse:
return _get(slug, pages_dir)
return await _get(slug, pages_dir)
@app.post("/pages/{slug:path}")
async def save_page(slug: str, body: PageBody, user: User = Depends(require_auth)) -> JSONResponse: