Skip to content

Commit

Permalink
added tags in the odm webhook router endpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
nrjadkry committed Dec 17, 2024
1 parent 656577c commit ce1f8dc
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/backend/app/projects/project_routes.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,8 +472,8 @@ async def process_all_imagery(
return {"message": f"Processing started for {len(tasks)} tasks."}


@router.post("/odm/webhook/{dtm_user_id}/{dtm_project_id}/")
async def odm_webhook_for_all_imagery(
@router.post("/odm/webhook/{dtm_user_id}/{dtm_project_id}/", tags=["Image Processing"])
async def odm_webhook_for_processing_whole_project(
request: Request,
dtm_project_id: uuid.UUID,
dtm_user_id: str,
Expand All @@ -498,8 +498,11 @@ async def odm_webhook_for_all_imagery(
return {"message": "Webhook received", "task_id": dtm_project_id}


@router.post("/odm/webhook/{dtm_user_id}/{dtm_project_id}/{dtm_task_id}/")
async def odm_webhook(
@router.post(
"/odm/webhook/{dtm_user_id}/{dtm_project_id}/{dtm_task_id}/",
tags=["Image Processing"],
)
async def odm_webhook_for_processing_a_single_task(
request: Request,
db: Annotated[Connection, Depends(database.get_db)],
dtm_project_id: uuid.UUID,
Expand Down

0 comments on commit ce1f8dc

Please sign in to comment.