mirror of
https://github.com/immich-app/immich.git
synced 2025-12-17 17:23:20 +03:00
refactor(server): guards, decorators, and utils (#3060)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import {
|
||||
AuthUserDto,
|
||||
CreateProfileImageDto,
|
||||
CreateProfileImageResponseDto,
|
||||
CreateUserDto,
|
||||
@@ -27,10 +28,9 @@ import {
|
||||
import { FileInterceptor } from '@nestjs/platform-express';
|
||||
import { ApiBody, ApiConsumes, ApiTags } from '@nestjs/swagger';
|
||||
import { Response as Res } from 'express';
|
||||
import { AdminRoute, Authenticated, AuthUser, PublicRoute } from '../app.guard';
|
||||
import { UseValidation } from '../app.utils';
|
||||
import { profileImageUploadOption } from '../config/profile-image-upload.config';
|
||||
import { AuthUser, AuthUserDto } from '../decorators/auth-user.decorator';
|
||||
import { AdminRoute, Authenticated, PublicRoute } from '../decorators/authenticated.decorator';
|
||||
import { UseValidation } from '../decorators/use-validation.decorator';
|
||||
|
||||
@ApiTags('User')
|
||||
@Controller('user')
|
||||
|
||||
Reference in New Issue
Block a user