mirror of
https://github.com/SyncrowIOT/backend.git
synced 2025-07-11 07:38:49 +00:00
authentication module done
This commit is contained in:
22
libs/common/src/common.module.ts
Normal file
22
libs/common/src/common.module.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import { Module } from '@nestjs/common';
|
||||
import { CommonService } from './common.service';
|
||||
import { DatabaseModule } from './database/database.module';
|
||||
import { HelperModule } from './helper/helper.module';
|
||||
import { AuthModule } from './auth/auth.module';
|
||||
import { ConfigModule } from '@nestjs/config';
|
||||
import config from './config';
|
||||
import { EmailService } from './util/email.service';
|
||||
|
||||
@Module({
|
||||
providers: [CommonService,EmailService],
|
||||
exports: [CommonService, HelperModule, AuthModule,EmailService],
|
||||
imports: [
|
||||
ConfigModule.forRoot({
|
||||
load: config,
|
||||
}),
|
||||
DatabaseModule,
|
||||
HelperModule,
|
||||
AuthModule,
|
||||
],
|
||||
})
|
||||
export class CommonModule {}
|
Reference in New Issue
Block a user