From 8f61537048ce312c879a8d6244a04c6830c6b4fc Mon Sep 17 00:00:00 2001 From: Backend IM Bot Date: Fri, 28 Mar 2025 10:10:36 +0100 Subject: [PATCH] Update code in endpoints/logout.post.py --- endpoints/logout.post.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/endpoints/logout.post.py b/endpoints/logout.post.py index da6a26a..9294eba 100644 --- a/endpoints/logout.post.py +++ b/endpoints/logout.post.py @@ -1,6 +1,6 @@ # 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 @@ -15,4 +15,4 @@ async def logout( current_user: User = Depends(get_current_user) ): logout_user(db, current_user) - return {"message": "Logged out successfully"} \ No newline at end of file + return {"message": "Logout successful"} \ No newline at end of file