Обновлённая система кеширования и чистка кода.

This commit is contained in:
2024-09-26 01:37:44 +04:00
parent 811feff173
commit cd9dc319eb
7 changed files with 95 additions and 165 deletions

View File

@@ -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();
}
}