Skip to content

Commit b40eb3a

Browse files
committed
fix(api): return 202 Accepted for POST /repos/{id}/index/async
Added status_code=202 to router.post decorator as documented in docstring.
1 parent 65e6482 commit b40eb3a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

backend/routes/repos.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ async def progress_callback(
326326
)
327327

328328

329-
@router.post("/{repo_id}/index/async")
329+
@router.post("/{repo_id}/index/async", status_code=202)
330330
async def index_repository_async(
331331
repo_id: str,
332332
background_tasks: BackgroundTasks,

0 commit comments

Comments
 (0)