import { Body, Controller, NotImplementedException, Post } from "@nestjs/common" import { ApiOperation, ApiResponse, ApiTags } from "@nestjs/swagger" import { EnsureImageVariantRequestDto } from "./ensure-image-variant.dto" @ApiTags("internal-images") @Controller("internal/images") export class InternalImagesController { @Post("ensure") @ApiOperation({ summary: "Ensure image variant for Gateway L1 miss" }) @ApiResponse({ status: 501, description: "Read-through image pipeline is not implemented yet" }) ensureImageVariant(@Body() request: EnsureImageVariantRequestDto): never { throw new NotImplementedException({ message: "image read-through pipeline is not implemented yet", request, status: "not_implemented", }) } }