From 2ce65bef00333484aaaf8081cba043d9f73e9582 Mon Sep 17 00:00:00 2001 From: F-G Fernandez <26927750+frgfm@users.noreply.github.com> Date: Mon, 4 Dec 2023 17:26:05 +0100 Subject: [PATCH] fix: Fixes router method --- src/app/api/api_v1/endpoints/repos.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/api_v1/endpoints/repos.py b/src/app/api/api_v1/endpoints/repos.py index 02d2b46..49e3064 100644 --- a/src/app/api/api_v1/endpoints/repos.py +++ b/src/app/api/api_v1/endpoints/repos.py @@ -151,7 +151,7 @@ async def fetch_guidelines_from_repo( return [elt for elt in await guidelines.fetch_all(("repo_id", repo_id))] -@router.get("/{repo_id}/waitlist", status_code=status.HTTP_200_OK) +@router.post("/{repo_id}/waitlist", status_code=status.HTTP_200_OK) async def add_repo_to_waitlist( repo_id: int = Path(..., gt=0), repos: RepositoryCRUD = Depends(get_repo_crud),