adding ms grpah client
This commit is contained in:
21
libs/modules/src/msGraph/ms-graph.module.ts
Normal file
21
libs/modules/src/msGraph/ms-graph.module.ts
Normal file
@@ -0,0 +1,21 @@
|
||||
import { Module, DynamicModule } from '@nestjs/common';
|
||||
import { MsGraphService } from './ms-graph.service';
|
||||
import { MsGraphOptions } from './ms-graph.interface';
|
||||
import { MS_GRAPH_OPTIONS } from './ms-graph.constants';
|
||||
|
||||
@Module({})
|
||||
export class MsGraphModule {
|
||||
static register(options: MsGraphOptions): DynamicModule {
|
||||
return {
|
||||
module: MsGraphModule,
|
||||
providers: [
|
||||
{
|
||||
provide: MS_GRAPH_OPTIONS,
|
||||
useValue: options
|
||||
},
|
||||
MsGraphService
|
||||
],
|
||||
exports: [MsGraphService]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user