From 0c25a519ada4c6b5c86a1a042aff9f9173f3c74d Mon Sep 17 00:00:00 2001 From: Philip Cheung Date: Sat, 5 Oct 2024 15:01:58 +0800 Subject: [PATCH] updated the settings api need auth problem --- backend/app/api/routes/setting.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/backend/app/api/routes/setting.py b/backend/app/api/routes/setting.py index a3becfd..de2ece8 100644 --- a/backend/app/api/routes/setting.py +++ b/backend/app/api/routes/setting.py @@ -14,7 +14,7 @@ router = APIRouter() "/", response_model=Setting, ) -def read_setting(session: SessionDep, current_user: CurrentUser) -> Any: +def read_setting(session: SessionDep) -> Any: """ Retrieve users. """ @@ -41,4 +41,3 @@ def update_setting( session.commit() session.refresh(setting) return setting -