mirror of
https://github.com/Tria-plc/edr-platform.git
synced 2026-08-26 18:42:49 +00:00
37 lines
670 B
TypeScript
37 lines
670 B
TypeScript
// otp.module.ts
|
|
|
|
import { Module } from "@nestjs/common";
|
|
|
|
import { TypeOrmModule } from "@nestjs/typeorm";
|
|
|
|
import { OtpVerification } from "./otp.entity";
|
|
|
|
import { OtpController } from "./otp.controller";
|
|
|
|
import { OtpService } from "./otp.service";
|
|
|
|
import { OtpRepository } from "./otp.repository";
|
|
|
|
import { NotificationsModule } from "../notifications/notifications.module";
|
|
|
|
@Module({
|
|
imports: [
|
|
TypeOrmModule.forFeature([
|
|
OtpVerification,
|
|
]),
|
|
NotificationsModule,
|
|
],
|
|
|
|
controllers: [OtpController],
|
|
|
|
providers: [
|
|
OtpService,
|
|
OtpRepository,
|
|
],
|
|
|
|
exports: [
|
|
OtpRepository,
|
|
OtpService,
|
|
],
|
|
})
|
|
export class OtpModule {} |