Fix missing await on _get for stories route

This commit is contained in:
brutsalvadi
2026-05-07 22:42:34 +02:00
parent ccb0d20454
commit d1c2e99dbc
+1 -1
View File
@@ -343,7 +343,7 @@ async def list_stories(user: User = Depends(require_auth)) -> JSONResponse:
@app.get("/stories/{slug:path}")
async def get_story(slug: str, user: User = Depends(require_auth)) -> JSONResponse:
return _get(slug, stories_dir)
return await _get(slug, stories_dir)
@app.post("/stories/{slug:path}")
async def save_story(slug: str, body: PageBody, user: User = Depends(require_auth)) -> JSONResponse: