patch: fix schemas

This commit is contained in:
Николай Вигдоров
2025-05-05 16:23:49 +03:00
parent 6546225e4f
commit 1526e52d60
4 changed files with 37 additions and 10 deletions

View File

@ -32,7 +32,11 @@ import {
MANIPULATE_STORAGE_SUCCESS,
GET_STORAGES_LIST_SUCCESS,
} from './api.responses';
import { AuthRequest, StorageCreateRequest } from './schemas';
import {
AuthRequest,
StorageCreateRequest,
StorageUpdateRequest,
} from './schemas';
import { Storage, StorageCreate, StorageList, StorageUpdate } from './types';
@Controller()
@ -107,6 +111,10 @@ export class AppController {
name: 'id',
description: 'id storage',
})
@ApiBody({
type: StorageUpdateRequest,
description: 'Объект обновления storage',
})
@Header(...ALLOW_ORIGIN_ALL)
@ApiResponse(MANIPULATE_STORAGE_SUCCESS)
@ApiResponse(AUTH_ERROR)