mirror of
				https://github.com/KevinMidboe/immich.git
				synced 2025-10-29 17:40:28 +00:00 
			
		
		
		
	chore(server): remove deprecated device endpoints (#1436)
* chore: remove endpoints * chore: generate open-api
This commit is contained in:
		| @@ -1,4 +1,4 @@ | ||||
| import { Body, Controller, Patch, Post, Put, ValidationPipe } from '@nestjs/common'; | ||||
| import { Body, Controller, Put, ValidationPipe } from '@nestjs/common'; | ||||
| import { ApiBearerAuth, ApiTags } from '@nestjs/swagger'; | ||||
| import { AuthUserDto, GetAuthUser } from '../../decorators/auth-user.decorator'; | ||||
| import { Authenticated } from '../../decorators/authenticated.decorator'; | ||||
| @@ -13,24 +13,6 @@ import { DeviceInfoResponseDto, mapDeviceInfoResponse } from './response-dto/dev | ||||
| export class DeviceInfoController { | ||||
|   constructor(private readonly deviceInfoService: DeviceInfoService) {} | ||||
|  | ||||
|   /** @deprecated */ | ||||
|   @Post() | ||||
|   public async createDeviceInfo( | ||||
|     @GetAuthUser() user: AuthUserDto, | ||||
|     @Body(ValidationPipe) dto: UpsertDeviceInfoDto, | ||||
|   ): Promise<DeviceInfoResponseDto> { | ||||
|     return this.upsertDeviceInfo(user, dto); | ||||
|   } | ||||
|  | ||||
|   /** @deprecated */ | ||||
|   @Patch() | ||||
|   public async updateDeviceInfo( | ||||
|     @GetAuthUser() user: AuthUserDto, | ||||
|     @Body(ValidationPipe) dto: UpsertDeviceInfoDto, | ||||
|   ): Promise<DeviceInfoResponseDto> { | ||||
|     return this.upsertDeviceInfo(user, dto); | ||||
|   } | ||||
|  | ||||
|   @Put() | ||||
|   public async upsertDeviceInfo( | ||||
|     @GetAuthUser() user: AuthUserDto, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user