chore: add user get profile and check validity route
This commit is contained in:
+5
-2
@@ -1,10 +1,12 @@
|
||||
import { CacheModule } from "@nestjs/cache-manager";
|
||||
import { MiddlewareConsumer, Module, NestModule } from "@nestjs/common";
|
||||
import { ConfigModule } from "@nestjs/config";
|
||||
import { ThrottlerModule } from "@nestjs/throttler";
|
||||
import { TypeOrmModule } from "@nestjs/typeorm";
|
||||
|
||||
import { cacheConfig } from "./configs/cache.config";
|
||||
import { DatabaseConfigs } from "./configs/typeorm.config";
|
||||
import { rateLimitConfig } from "./configs/rateLimit.config";
|
||||
import { databaseConfigs } from "./configs/typeorm.config";
|
||||
import { HTTPLogger } from "./core/middlewares/logger.middleware";
|
||||
import { AuthModule } from "./modules/auth/auth.module";
|
||||
import { TicketsModule } from "./modules/tickets/tickets.module";
|
||||
@@ -12,9 +14,10 @@ import { UsersModule } from "./modules/users/users.module";
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
ThrottlerModule.forRootAsync(rateLimitConfig()),
|
||||
ConfigModule.forRoot({ cache: true, isGlobal: true }),
|
||||
CacheModule.registerAsync(cacheConfig()),
|
||||
TypeOrmModule.forRootAsync(DatabaseConfigs()),
|
||||
TypeOrmModule.forRootAsync(databaseConfigs()),
|
||||
UsersModule,
|
||||
TicketsModule,
|
||||
AuthModule,
|
||||
|
||||
Reference in New Issue
Block a user