Advertisement
nikolayneykov

Untitled

Oct 6th, 2019
132
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.   @Get('users')
  2.   @UseGuards(AuthGuard())
  3.   public async getAllUsers(
  4.     @Query(new ValidationPipe({ transform: true, whitelist: true })) options: SearchUsersDTO,
  5.   ): Promise<ShowUserDTO[]> {
  6.     return await this.usersService.getAllUsers(options);
  7.   }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement