mirror of
https://github.com/n08i40k/schedule-parser-next.git
synced 2025-12-06 17:57:45 +03:00
Обновлённая система кеширования и чистка кода.
This commit is contained in:
@@ -10,6 +10,7 @@ import {
|
||||
import { AuthGuard } from "../auth/auth.guard";
|
||||
import { ScheduleService } from "./schedule.service";
|
||||
import {
|
||||
CacheStatusDto,
|
||||
GroupScheduleDto,
|
||||
GroupScheduleRequestDto,
|
||||
ScheduleDto,
|
||||
@@ -97,4 +98,17 @@ export class ScheduleController {
|
||||
): Promise<void> {
|
||||
return await this.scheduleService.updateSiteMainPage(siteMainPageDto);
|
||||
}
|
||||
|
||||
@ApiExtraModels(CacheStatusDto)
|
||||
@ApiOperation({
|
||||
summary: "Получение информации о кеше",
|
||||
tags: ["schedule", "cache"],
|
||||
})
|
||||
@ApiOkResponse({ description: "Получение данных прошло успешно" })
|
||||
@ResultDto(CacheStatusDto)
|
||||
@HttpCode(HttpStatus.OK)
|
||||
@Get("cache-status")
|
||||
getCacheStatus(): CacheStatusDto {
|
||||
return this.scheduleService.getCacheStatus();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user