mirror of
https://github.com/CaramelFur/Picsur.git
synced 2025-11-14 07:45:39 +01:00
relocate special roles to api request
This commit is contained in:
10
backend/src/models/requests/imageroute.dto.ts
Normal file
10
backend/src/models/requests/imageroute.dto.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { Type } from 'class-transformer';
|
||||
import { IsDefined, ValidateNested } from 'class-validator';
|
||||
import { MultiPartFileDto } from './multipart.dto';
|
||||
|
||||
export class ImageUploadDto {
|
||||
@IsDefined()
|
||||
@ValidateNested()
|
||||
@Type(() => MultiPartFileDto)
|
||||
image: MultiPartFileDto;
|
||||
}
|
||||
Reference in New Issue
Block a user