diff --git a/endpoints/logoutst.post.py b/endpoints/logoutst.post.py index 9fca3b2..150fa0b 100644 --- a/endpoints/logoutst.post.py +++ b/endpoints/logoutst.post.py @@ -1,8 +1,10 @@ # Entity: User -from fastapi import APIRouter, Depends, status +from fastapi import APIRouter, Depends, HTTPException, status from sqlalchemy.orm import Session from core.database import get_db +from models.user import User +from schemas.user import UserSchema from helpers.user_helpers import logout_user router = APIRouter() @@ -11,4 +13,5 @@ router = APIRouter() async def logout( db: Session = Depends(get_db) ): - return logout_user(db) \ No newline at end of file + logout_user(db) + return {"message": "Logged out successfully"} \ No newline at end of file