From 4f07a1a7173e2d801a968b57c99f20a1bcf18c85 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 11:49:24 +0100 Subject: [PATCH] Update code in endpoints/logoutst.post.py --- endpoints/logoutst.post.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 endpoints/logoutst.post.py diff --git a/endpoints/logoutst.post.py b/endpoints/logoutst.post.py new file mode 100644 index 0000000..9fca3b2 --- /dev/null +++ b/endpoints/logoutst.post.py @@ -0,0 +1,14 @@ +# Entity: User + +from fastapi import APIRouter, Depends, status +from sqlalchemy.orm import Session +from core.database import get_db +from helpers.user_helpers import logout_user + +router = APIRouter() + +@router.post("/logout", status_code=200) +async def logout( + db: Session = Depends(get_db) +): + return logout_user(db) \ No newline at end of file