Files
simple-storage/src/api.responses.ts
Николай Вигдоров 12b3d5b23c add service and first method to controller
2025-03-01 23:54:08 +03:00

23 lines
676 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { ApiResponseOptions } from '@nestjs/swagger';
import { StorageResponse } from './schemas';
export const AUTH_SUCCESS: ApiResponseOptions = {
status: 200,
description: 'Токен пользователя',
type: String,
};
export const AUTH_ERROR: ApiResponseOptions = {
status: 406,
description:
'Ошибка, при попытке получить доступ к данным без токена или с не корректным токеном',
type: Error,
};
export const GET_STORAGES_LIST_SUCCESS: ApiResponseOptions = {
status: 200,
description: 'Список всех картинок',
type: StorageResponse,
isArray: true,
};