feat(api): integrate RiotModule and ConfigModule
This commit is contained in:
1 parent
27ebed0954
commit
928d68cf00
1 file changed
+11
-1
@@ -1,9 +1,19 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import { AppController } from './app.controller';
|
||||
import { AppService } from './app.service';
|
||||
import { GlobalModule } from './modules/global/global.module';
|
||||
import { RiotModule } from './modules/riot/riot.module';
|
||||
|
||||
@Module({
|
||||
imports: [],
|
||||
imports: [
|
||||
ConfigModule.forRoot({
|
||||
isGlobal: true,
|
||||
envFilePath: ['../project.env', 'project.env'],
|
||||
}),
|
||||
GlobalModule,
|
||||
RiotModule,
|
||||
],
|
||||
controllers: [AppController],
|
||||
providers: [AppService],
|
||||
})
|
||||
|
||||
Reference in new issue
Block a user