From a535e5bb1dc5ed2964e3adc5cb577281811ace79 Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 11:49:35 +0100 Subject: [PATCH] Update code in endpoints/logoutst.post.py --- endpoints/logoutst.post.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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