diff --git a/apps/backend/src/app/files/files.controller.ts b/apps/backend/src/app/files/files.controller.ts index 53002dd..777af7c 100644 --- a/apps/backend/src/app/files/files.controller.ts +++ b/apps/backend/src/app/files/files.controller.ts @@ -203,7 +203,7 @@ export class FilesController { return await this.filesService.removeFileType(typeId); } - @HttpCode(HttpStatus.FOUND) + @HttpCode(HttpStatus.OK) @Get(":fileId") async getFile(@Param("fileId") fileId: string) { return await this.filesService.get(fileId); diff --git a/apps/backend/src/app/machines/machines.controller.ts b/apps/backend/src/app/machines/machines.controller.ts index 48e4365..8d72d7b 100644 --- a/apps/backend/src/app/machines/machines.controller.ts +++ b/apps/backend/src/app/machines/machines.controller.ts @@ -19,7 +19,8 @@ import { TypeDto, } from "apps/backend/src/app/machines/machines.dto"; import { MachinesService } from "apps/backend/src/app/machines/machines.service"; -import { ApiTags } from '@nestjs/swagger'; +import { ApiResponse, ApiTags } from '@nestjs/swagger'; +import { IMachinesTable } from 'apps/backend/src/app/db/schema'; @ApiTags('Machines') @Controller("machines")