mirror of
https://git.vectorsigma.ru/public/immich.git
synced 2026-08-06 12:18:28 +00:00
* duplicate controller and service * change endpoint name * fix search tests * remove unused import * add to index
19 lines
625 B
TypeScript
19 lines
625 B
TypeScript
import { Controller, Get } from '@nestjs/common';
|
|
import { ApiTags } from '@nestjs/swagger';
|
|
import { AssetResponseDto } from 'src/dtos/asset-response.dto';
|
|
import { AuthDto } from 'src/dtos/auth.dto';
|
|
import { Auth, Authenticated } from 'src/middleware/auth.guard';
|
|
import { DuplicateService } from 'src/services/duplicate.service';
|
|
|
|
@ApiTags('Duplicate')
|
|
@Controller('duplicates')
|
|
export class DuplicateController {
|
|
constructor(private service: DuplicateService) {}
|
|
|
|
@Get()
|
|
@Authenticated()
|
|
getAssetDuplicates(@Auth() auth: AuthDto): Promise<AssetResponseDto[]> {
|
|
return this.service.getDuplicates(auth);
|
|
}
|
|
}
|