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:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -58,3 +58,6 @@ report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json
|
|||||||
# HTTPS cerificates
|
# HTTPS cerificates
|
||||||
/cert/
|
/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",
|
"name": "schedule-parser-next",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "schedule-parser-next",
|
"name": "schedule-parser-next",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"license": "UNLICENSED",
|
"license": "UNLICENSED",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nestjs/cache-manager": "^2.2.2",
|
"@nestjs/cache-manager": "^2.2.2",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "schedule-parser-next",
|
"name": "schedule-parser-next",
|
||||||
"version": "2.0.1",
|
"version": "2.0.2",
|
||||||
"description": "",
|
"description": "",
|
||||||
"author": "N08I40K",
|
"author": "N08I40K",
|
||||||
"private": true,
|
"private": true,
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ import {
|
|||||||
ApiResponse,
|
ApiResponse,
|
||||||
ApiTags,
|
ApiTags,
|
||||||
} from "@nestjs/swagger";
|
} 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 { UserToken } from "../auth/auth.decorator";
|
||||||
import { UserPipe } from "../auth/auth.pipe";
|
import { UserPipe } from "../auth/auth.pipe";
|
||||||
import { V2ScheduleService } from "./v2-schedule.service";
|
import { V2ScheduleService } from "./v2-schedule.service";
|
||||||
@@ -92,6 +92,7 @@ export class V2ScheduleController {
|
|||||||
@ResultDto(V2ScheduleGroupNamesDto)
|
@ResultDto(V2ScheduleGroupNamesDto)
|
||||||
@CacheKey("v2-schedule-group-names")
|
@CacheKey("v2-schedule-group-names")
|
||||||
@UseInterceptors(CacheInterceptor)
|
@UseInterceptors(CacheInterceptor)
|
||||||
|
@AuthUnauthorized()
|
||||||
@HttpCode(HttpStatus.OK)
|
@HttpCode(HttpStatus.OK)
|
||||||
@Get("group-names")
|
@Get("group-names")
|
||||||
async getGroupNames(): Promise<V2ScheduleGroupNamesDto> {
|
async getGroupNames(): Promise<V2ScheduleGroupNamesDto> {
|
||||||
|
|||||||
Reference in New Issue
Block a user