import { Controller, Get, Post, Body, Patch, Param, Delete, UseGuards } from '@nestjs/common'; import { UserService } from './user.service'; import { JwtAuthGuard } from '../../modules/immich-jwt/guards/jwt-auth.guard'; import { AuthUserDto, GetAuthUser } from '../../decorators/auth-user.decorator'; @UseGuards(JwtAuthGuard) @Controller('user') export class UserController { constructor(private readonly userService: UserService) {} @Get() async getAllUsers(@GetAuthUser() authUser: AuthUserDto) { return await this.userService.getAllUsers(authUser); } }