forked from Yara724/api
Centralized SMS services YARA-834
This commit is contained in:
18
src/sms-orchestration/provider/sms-gateway.module.ts
Normal file
18
src/sms-orchestration/provider/sms-gateway.module.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { KavenegarModule } from "@fraybabak/kavenegar_nest";
|
||||
import { Module } from "@nestjs/common";
|
||||
import * as dotenv from "dotenv";
|
||||
import { SmsGatewayService } from "./sms-gateway.service";
|
||||
|
||||
dotenv.config();
|
||||
dotenv.config({ path: `.${process.env.NODE_ENV}.env` });
|
||||
|
||||
@Module({
|
||||
imports: [
|
||||
KavenegarModule.forRoot({
|
||||
apikey: process.env.SMS_API_KEY || "",
|
||||
}),
|
||||
],
|
||||
providers: [SmsGatewayService],
|
||||
exports: [SmsGatewayService],
|
||||
})
|
||||
export class SmsGatewayModule {}
|
||||
Reference in New Issue
Block a user