mirror of
				https://github.com/immich-app/immich.git
				synced 2025-10-31 02:27:08 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			19 lines
		
	
	
		
			666 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			666 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Controller, Get, Query } from '@nestjs/common';
 | |
| import { ApiTags } from '@nestjs/swagger';
 | |
| import { AuditDeletesDto, AuditDeletesResponseDto } from 'src/dtos/audit.dto';
 | |
| import { AuthDto } from 'src/dtos/auth.dto';
 | |
| import { Auth, Authenticated } from 'src/middleware/auth.guard';
 | |
| import { AuditService } from 'src/services/audit.service';
 | |
| 
 | |
| @ApiTags('Audit')
 | |
| @Controller('audit')
 | |
| export class AuditController {
 | |
|   constructor(private service: AuditService) {}
 | |
| 
 | |
|   @Get('deletes')
 | |
|   @Authenticated()
 | |
|   getAuditDeletes(@Auth() auth: AuthDto, @Query() dto: AuditDeletesDto): Promise<AuditDeletesResponseDto> {
 | |
|     return this.service.getDeletes(auth, dto);
 | |
|   }
 | |
| }
 |