add staff user list endpoint

This commit is contained in:
Marshal
2026-08-03 12:32:10 +00:00
parent c12108d953
commit 106b07a02b
4 changed files with 133 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
import { Controller, Get, Query } from '@nestjs/common';
import { ApiBearerAuth, ApiOperation, ApiTags } from '@nestjs/swagger';
import { ListUsersQueryDto } from './dto/list-users-query.dto';
import { ListUsersService } from './list-users.service';
import { StaffReference } from '../../common/booking-guards';
@ApiTags('auth')
@Controller('staff/users')
@ApiBearerAuth()
export class ListUsersController {
constructor(private readonly service: ListUsersService) {}
@Get()
@StaffReference()
@ApiOperation({
summary: 'List IAM users (paginated) for backoffice pickers',
})
findAll(@Query() query: ListUsersQueryDto) {
return this.service.findAll(query);
}
}