forked from open-webui/open-webui
refac: remove the verify_token and use get-current user for auth+user
This commit is contained in:
parent
2d323b31e1
commit
77323d9b25
5 changed files with 12 additions and 41 deletions
|
@ -108,6 +108,7 @@ async def delete_chat_by_id(id: str, user=Depends(get_current_user)):
|
|||
result = Chats.delete_chat_by_id_and_user_id(id, user.id)
|
||||
return result
|
||||
|
||||
|
||||
############################
|
||||
# DeleteAllChats
|
||||
############################
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue