Skip to content

Commit

Permalink
routers.release: fix api_post_release path
Browse files Browse the repository at this point in the history
The release API router uses the /api prefix so we must not add it in
routes.

Fixes: eedfa7c ("app: move POST /api/release to app.routers.release")
  • Loading branch information
stintel committed Jan 10, 2024
1 parent 69b9cf2 commit 5ae2c2e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/routers/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ class PostRelease(BaseModel):
action: Literal['cache', 'delete'] = Field(Query(..., description='Release Cache Control'))


@router.post("/api/release")
@router.post("/release")
async def api_post_release(request: Request, release: PostRelease = Depends()):
log.debug('API POST RELEASE: Request')
if release.action == "cache":
Expand Down

0 comments on commit 5ae2c2e

Please sign in to comment.