Add post endpoint for logouts
This commit is contained in:
parent
25bf48c5b2
commit
d7a7d169c0
13
endpoints/logouts.post.py
Normal file
13
endpoints/logouts.post.py
Normal file
@ -0,0 +1,13 @@
|
||||
# Entity: User
|
||||
|
||||
from fastapi import APIRouter, Depends, status
|
||||
from core.database import get_db
|
||||
from sqlalchemy.orm import Session
|
||||
|
||||
router = APIRouter()
|
||||
|
||||
@router.post("/logouts", status_code=status.HTTP_200_OK)
|
||||
async def logout(
|
||||
db: Session = Depends(get_db)
|
||||
):
|
||||
return {"message": "Logged out successfully"}
|
Loading…
x
Reference in New Issue
Block a user