|
12 | 12 |
|
13 | 13 | class ApiGatewayHandler(object): |
14 | 14 | async def get_order(self, request: web.Request, config: MinosConfig, **kwargs): |
15 | | - coordinator = MicroserviceCallCoordinator(config, request, request.url.host, request.url.port) |
| 15 | + coordinator = MicroserviceCallCoordinator(config, request) |
16 | 16 | response = await coordinator.orchestrate() |
17 | 17 | return response |
18 | 18 |
|
19 | 19 | async def post_order(self, request: web.Request, config: MinosConfig, **kwargs): |
20 | | - coordinator = MicroserviceCallCoordinator(config, request, request.url.host, request.url.port) |
| 20 | + coordinator = MicroserviceCallCoordinator(config, request) |
21 | 21 | response = await coordinator.orchestrate() |
22 | 22 | return response |
23 | 23 |
|
24 | 24 | async def put_order(self, request: web.Request, config: MinosConfig, **kwargs): |
25 | | - coordinator = MicroserviceCallCoordinator(config, request, request.url.host, request.url.port) |
| 25 | + coordinator = MicroserviceCallCoordinator(config, request) |
26 | 26 | response = await coordinator.orchestrate() |
27 | 27 | return response |
28 | 28 |
|
29 | 29 | async def patch_order(self, request: web.Request, config: MinosConfig, **kwargs): |
30 | | - coordinator = MicroserviceCallCoordinator(config, request, request.url.host, request.url.port) |
| 30 | + coordinator = MicroserviceCallCoordinator(config, request) |
31 | 31 | response = await coordinator.orchestrate() |
32 | 32 | return response |
33 | 33 |
|
34 | 34 | async def delete_order(self, request: web.Request, config: MinosConfig, **kwargs): |
35 | | - coordinator = MicroserviceCallCoordinator(config, request, request.url.host, request.url.port) |
| 35 | + coordinator = MicroserviceCallCoordinator(config, request) |
36 | 36 | response = await coordinator.orchestrate() |
37 | 37 | return response |
0 commit comments