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 { Module } from '@nestjs/common';
|
||||||
|
import { ConfigModule } from '@nestjs/config';
|
||||||
import { AppController } from './app.controller';
|
import { AppController } from './app.controller';
|
||||||
import { AppService } from './app.service';
|
import { AppService } from './app.service';
|
||||||
|
import { GlobalModule } from './modules/global/global.module';
|
||||||
|
import { RiotModule } from './modules/riot/riot.module';
|
||||||
|
|
||||||
@Module({
|
@Module({
|
||||||
imports: [],
|
imports: [
|
||||||
|
ConfigModule.forRoot({
|
||||||
|
isGlobal: true,
|
||||||
|
envFilePath: ['../project.env', 'project.env'],
|
||||||
|
}),
|
||||||
|
GlobalModule,
|
||||||
|
RiotModule,
|
||||||
|
],
|
||||||
controllers: [AppController],
|
controllers: [AppController],
|
||||||
providers: [AppService],
|
providers: [AppService],
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in new issue
Block a user