mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 09:47:46 +03:00
2.0.2
Фикс получения списка групп во второй версии api.
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -57,4 +57,7 @@ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
||||
|
||||
# HTTPS cerificates
|
||||
/cert/
|
||||
*.pem
|
||||
*.pem
|
||||
|
||||
# K8S test files
|
||||
/k8s/
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "schedule-parser-next",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "schedule-parser-next",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"license": "UNLICENSED",
|
||||
"dependencies": {
|
||||
"@nestjs/cache-manager": "^2.2.2",
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "schedule-parser-next",
|
||||
"version": "2.0.1",
|
||||
"version": "2.0.2",
|
||||
"description": "",
|
||||
"author": "N08I40K",
|
||||
"private": true,
|
||||
|
||||
@@ -17,7 +17,7 @@ import {
|
||||
ApiResponse,
|
||||
ApiTags,
|
||||
} from "@nestjs/swagger";
|
||||
import { AuthRoles } from "../auth/auth-role.decorator";
|
||||
import { AuthRoles, AuthUnauthorized } from "../auth/auth-role.decorator";
|
||||
import { UserToken } from "../auth/auth.decorator";
|
||||
import { UserPipe } from "../auth/auth.pipe";
|
||||
import { V2ScheduleService } from "./v2-schedule.service";
|
||||
@@ -92,6 +92,7 @@ export class V2ScheduleController {
|
||||
@ResultDto(V2ScheduleGroupNamesDto)
|
||||
@CacheKey("v2-schedule-group-names")
|
||||
@UseInterceptors(CacheInterceptor)
|
||||
@AuthUnauthorized()
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Get("group-names")
|
||||
async getGroupNames(): Promise<V2ScheduleGroupNamesDto> {
|
||||
|
||||
Reference in New Issue
Block a user