Skip to content

Commit

Permalink
Use FastAPI status module in users router
Browse files Browse the repository at this point in the history
  • Loading branch information
bkis committed Jan 25, 2024
1 parent c344282 commit c067748
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Tekst-API/tekst/routers/users.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Annotated

from fastapi import APIRouter, Depends, Request
from fastapi import APIRouter, Depends, Request, status

from tekst.auth import (
UserDep,
Expand All @@ -16,7 +16,7 @@


# extra endpoint for users to delete their own account
@router.delete("/me", status_code=204)
@router.delete("/me", status_code=status.HTTP_204_NO_CONTENT)
async def delete_me(
user: UserDep,
user_mgr: Annotated[UserManager, Depends(get_user_manager)],
Expand Down

0 comments on commit c067748

Please sign in to comment.