list paginate wip
This commit is contained in:
parent
02d4257ad6
commit
c95e7aa546
@ -9,6 +9,7 @@ router = APIRouter()
|
|||||||
@router.get("/users", tags=["users"], response_model=list[users.UserOut])
|
@router.get("/users", tags=["users"], response_model=list[users.UserOut])
|
||||||
async def read_users(authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin"]))]):
|
async def read_users(authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin"]))]):
|
||||||
listUsers = []
|
listUsers = []
|
||||||
|
user_repository = users.UserRepository(database=database.database)
|
||||||
for fake in users_active.fake_users:
|
for fake in users_active.fake_users:
|
||||||
user = users.UserOut(id=fake["id"], username=fake["username"], disabled=fake["disabled"], roles=fake["roles"])
|
user = users.UserOut(id=fake["id"], username=fake["username"], disabled=fake["disabled"], roles=fake["roles"])
|
||||||
listUsers.append(user)
|
listUsers.append(user)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user