mirror of
https://github.com/vernu/textbee.git
synced 2026-07-01 08:16:40 +00:00
25 lines
683 B
TypeScript
25 lines
683 B
TypeScript
import { Module } from '@nestjs/common'
|
|
import { MongooseModule } from '@nestjs/mongoose'
|
|
import { Device, DeviceSchema } from './schemas/device.schema'
|
|
import { GatewayController } from './gateway.controller'
|
|
import { GatewayService } from './gateway.service'
|
|
import { AuthModule } from '../auth/auth.module'
|
|
import { UsersModule } from '../users/users.module'
|
|
|
|
@Module({
|
|
imports: [
|
|
MongooseModule.forFeature([
|
|
{
|
|
name: Device.name,
|
|
schema: DeviceSchema,
|
|
},
|
|
]),
|
|
AuthModule,
|
|
UsersModule,
|
|
],
|
|
controllers: [GatewayController],
|
|
providers: [GatewayService],
|
|
exports: [MongooseModule, GatewayService],
|
|
})
|
|
export class GatewayModule {}
|