feat: added submodules in the app.module.ts for the auth service

feature/auth
Artem-Darius Weber 2 years ago
parent 1ab078fc54
commit f5d32f6789

@ -1,10 +1,23 @@
import { Module } from '@nestjs/common';
import { ConfigModule } from "@nestjs/config";
import { AppController } from './app.controller';
import { AppService } from './app.service';
import PortConfig from "../config/port.config";
import KeysConfig from "../config/keys.config";
import { UserModule } from "../user/user.module";
import { DeviceModule } from "../device/device.module";
import { TokenModule } from "../token/token.module";
import { PrismaModule } from "../prisma/prisma.module";
@Module({
imports: [],
imports: [
ConfigModule.forRoot({ isGlobal: true, load: [PortConfig, KeysConfig] }),
UserModule,
DeviceModule,
TokenModule,
PrismaModule
],
controllers: [AppController],
providers: [AppService],
})

Loading…
Cancel
Save