✨ feat(cities): добавляет DTO для создания города и района
✨ feat(greetings): добавляет схему для тела запроса при добавлении фразы приветствия ✨ feat(auth): добавляет схему для тела запроса при обновлении FCM токена ✨ feat(tags): добавляет схему для тела запроса при создании тега
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Body, Controller, Post, UseGuards } from '@nestjs/common';
|
||||
import { ApiBearerAuth, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
|
||||
import { ApiBearerAuth, ApiBody, ApiOperation, ApiResponse, ApiTags } from '@nestjs/swagger';
|
||||
import { AuthService } from './auth.service';
|
||||
import { LoginDto } from './dto/login.dto';
|
||||
import { RefreshTokenDto } from './dto/refresh-token.dto';
|
||||
@@ -52,6 +52,7 @@ export class AuthController {
|
||||
@Post('fcm-token')
|
||||
@ApiBearerAuth()
|
||||
@ApiOperation({ summary: 'Update FCM push token' })
|
||||
@ApiBody({ schema: { type: 'object', properties: { fcmToken: { type: 'string', example: 'firebase-token-abc123' } }, required: ['fcmToken'] } })
|
||||
@ApiResponse({ status: 201, type: MessageResponseDto })
|
||||
updateFcmToken(
|
||||
@CurrentUser('id') userId: string,
|
||||
|
||||
Reference in New Issue
Block a user