mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 17:57:45 +03:00
3.0.0.
- Updated package version to 3.0.0 - Improved FCM topic handling logic - Enhanced schedule parser accuracy - Removed HTTPS options for dev simplicity - Added detailed API documentation - Removed support for older api versions
This commit is contained in:
@@ -4,8 +4,8 @@ import {
|
||||
Controller,
|
||||
HttpCode,
|
||||
HttpStatus,
|
||||
Param,
|
||||
Post,
|
||||
Param, Patch,
|
||||
Post, Query,
|
||||
UseGuards,
|
||||
} from "@nestjs/common";
|
||||
import { AuthGuard } from "../auth/auth.guard";
|
||||
@@ -54,11 +54,11 @@ export class FirebaseAdminController {
|
||||
status: HttpStatus.OK,
|
||||
description: "Установка токена удалась",
|
||||
})
|
||||
@Post("set-token/:token")
|
||||
@Patch("set-token")
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@ResultDto(null)
|
||||
async setToken(
|
||||
@Param("token") token: string,
|
||||
@Query("token") token: string,
|
||||
@UserToken(UserPipe) user: User,
|
||||
): Promise<void> {
|
||||
if (user.fcm?.token === token) return;
|
||||
|
||||
Reference in New Issue
Block a user