list paginate wip

This commit is contained in:
Valentin CZERYBA 2023-10-13 22:55:52 +02:00
parent 02d4257ad6
commit c95e7aa546

View File

@ -9,6 +9,7 @@ router = APIRouter()
@router.get("/users", tags=["users"], response_model=list[users.UserOut])
async def read_users(authorize: Annotated[bool, Depends(permissions_checker.PermissionChecker(roles=["Admin"]))]):
listUsers = []
user_repository = users.UserRepository(database=database.database)
for fake in users_active.fake_users:
user = users.UserOut(id=fake["id"], username=fake["username"], disabled=fake["disabled"], roles=fake["roles"])
listUsers.append(user)