From d7a7d169c0028ff7e9be8a14b70fc177a15f10f4 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Wed, 26 Mar 2025 18:04:48 +0100 Subject: [PATCH] Add post endpoint for logouts --- endpoints/logouts.post.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 endpoints/logouts.post.py diff --git a/endpoints/logouts.post.py b/endpoints/logouts.post.py new file mode 100644 index 0000000..b48d96f --- /dev/null +++ b/endpoints/logouts.post.py @@ -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"} \ No newline at end of file