-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathapp.module.ts
More file actions
23 lines (22 loc) · 880 Bytes
/
app.module.ts
File metadata and controls
23 lines (22 loc) · 880 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
import { Module } from "@nestjs/common";
import { ConfigModule } from "@nestjs/config";
import { APP_GUARD } from "@nestjs/core";
import { PrismaService } from "./common/db/prisma.service";
import { AuthGuard } from "./common/guards/auth.guard";
import { ApplicationsModule } from "./sections/applications/applications.module";
import { ShowcasesModule } from "./sections/showcases/showcases.module";
import { AuthModule } from "./sections/auth/auth.module";
import { StatusModule } from "./sections/status/status.module";
import { UtilityModule } from "./sections/utility/utility.module";
@Module({
imports: [
UtilityModule,
AuthModule,
ApplicationsModule,
ShowcasesModule,
StatusModule,
ConfigModule.forRoot({ isGlobal: true, cache: true }),
],
providers: [PrismaService, { provide: APP_GUARD, useClass: AuthGuard }],
})
export class AppModule {}