|
@ -2,10 +2,15 @@ import { Module } from '@nestjs/common'; |
|
|
import { AppController } from './app.controller'; |
|
|
import { AppController } from './app.controller'; |
|
|
import { AppService } from './app.service'; |
|
|
import { AppService } from './app.service'; |
|
|
import { LogsController } from './logs/logs.controller'; |
|
|
import { LogsController } from './logs/logs.controller'; |
|
|
|
|
|
import { LogsService } from './logs/logs.service'; |
|
|
|
|
|
import { LogsModule } from './logs/logs.module'; |
|
|
|
|
|
import { MongooseModule } from '@nestjs/mongoose'; |
|
|
|
|
|
|
|
|
@Module({ |
|
|
@Module({ |
|
|
imports: [], |
|
|
imports: [MongooseModule.forRoot( |
|
|
|
|
|
"mongodb://localhost/IoT" |
|
|
|
|
|
), LogsModule], |
|
|
controllers: [AppController, LogsController], |
|
|
controllers: [AppController, LogsController], |
|
|
providers: [AppService], |
|
|
providers: [AppService, LogsService], |
|
|
}) |
|
|
}) |
|
|
export class AppModule {} |
|
|
export class AppModule {} |
|
|