Добавлена возможность заменять файл с расписанием.

Добалена возможность давать доступ к end-point'ам только определённым ролям.

Чуть-чуть меньше спагетти в объявлениях модулей.
This commit is contained in:
2024-10-03 01:49:23 +04:00
parent d18a6764c9
commit 32e06350ad
20 changed files with 361 additions and 46 deletions

View File

@@ -3,6 +3,7 @@ import { AuthModule } from "./auth/auth.module";
import { UsersModule } from "./users/users.module";
import { ScheduleModule } from "./schedule/schedule.module";
import { CacheModule } from "@nestjs/cache-manager";
import { ScheduleReplacerModule } from "./schedule-replacer/schedule-replacer.module";
@Module({
imports: [
@@ -10,6 +11,7 @@ import { CacheModule } from "@nestjs/cache-manager";
UsersModule,
ScheduleModule,
CacheModule.register({ ttl: 5 * 60 * 1000, isGlobal: true }),
ScheduleReplacerModule,
],
controllers: [],
providers: [],