mirror of
https://github.com/open-webui/open-webui
synced 2024-12-27 14:22:10 +00:00
fix: get users
This commit is contained in:
parent
d3ba77837a
commit
70a108e54f
@ -27,7 +27,11 @@ router = APIRouter()
|
|||||||
|
|
||||||
|
|
||||||
@router.get("/", response_model=list[UserModel])
|
@router.get("/", response_model=list[UserModel])
|
||||||
async def get_users(skip: int = 0, limit: int = 50, user=Depends(get_admin_user)):
|
async def get_users(
|
||||||
|
skip: Optional[int] = None,
|
||||||
|
limit: Optional[int] = None,
|
||||||
|
user=Depends(get_admin_user),
|
||||||
|
):
|
||||||
return Users.get_users(skip, limit)
|
return Users.get_users(skip, limit)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user