updated the settings api need auth problem

This commit is contained in:
Philip Cheung 2024-10-05 15:01:58 +08:00
parent f20685beea
commit 0c25a519ad
1 changed files with 1 additions and 2 deletions

View File

@ -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