1
- import { Module } from ' @nestjs/common' ;
2
- import { HeroController } from ' ./hero.controller' ;
3
- import { ClientsModule , Transport } from ' @nestjs/microservices' ;
4
- import { join } from ' path' ;
5
- import { HERO_PACKAGE_NAME } from ' ../hero' ;
1
+ import { Module } from " @nestjs/common" ;
2
+ import { HeroController } from " ./hero.controller" ;
3
+ import { ClientsModule , Transport } from " @nestjs/microservices" ;
4
+ import { join } from " path" ;
5
+ import { HERO_PACKAGE_NAME } from " ../hero" ;
6
6
7
7
@Module ( {
8
8
imports : [
9
9
ClientsModule . register ( [
10
- {
11
- name : HERO_PACKAGE_NAME ,
12
- transport : Transport . GRPC ,
13
- options : {
14
- url : '0.0.0.0:8081' ,
15
- package : HERO_PACKAGE_NAME ,
16
- protoPath : join ( __dirname , '../hero.proto' ) ,
17
- } ,
10
+ {
11
+ name : HERO_PACKAGE_NAME ,
12
+ transport : Transport . GRPC ,
13
+ options : {
14
+ url : "0.0.0.0:8082" ,
15
+ package : HERO_PACKAGE_NAME ,
16
+ protoPath : join ( __dirname , "../hero.proto" ) ,
18
17
} ,
18
+ } ,
19
19
] ) ,
20
20
] ,
21
- controllers : [ HeroController ]
21
+ controllers : [ HeroController ] ,
22
22
} )
23
- export class AppModule { }
23
+ export class AppModule { }
0 commit comments