new(all): TRUE multicloud.
This commit is contained in:
		
							parent
							
								
									5df0ed0180
								
							
						
					
					
						commit
						6302ade0fe
					
				
					 2 changed files with 5 additions and 2 deletions
				
			
		| 
						 | 
					@ -15,6 +15,7 @@
 | 
				
			||||||
      "url": "https://opensource.org/licenses/MIT"
 | 
					      "url": "https://opensource.org/licenses/MIT"
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 | 
					  "host": "directline.botframework.com",
 | 
				
			||||||
  "schemes": [
 | 
					  "schemes": [
 | 
				
			||||||
    "https"
 | 
					    "https"
 | 
				
			||||||
  ],
 | 
					  ],
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
| 
						 | 
					@ -75,10 +75,12 @@ export class GBUtil {
 | 
				
			||||||
      }
 | 
					      }
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
    if (!GBConfigService.get('STORAGE_NAME')) {
 | 
					    if (!GBConfigService.get('STORAGE_NAME')) {
 | 
				
			||||||
      (config['url'] = `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages`),
 | 
					      config['spec'].url = `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages`,
 | 
				
			||||||
        (config['spec'].servers = [{ url: `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages` }]);
 | 
					      config['spec'].servers = [{ url: `http://127.0.0.1:${GBConfigService.getServerPort()}/api/messages` }];
 | 
				
			||||||
      config['openapi'] = '3.0.0';
 | 
					      config['openapi'] = '3.0.0';
 | 
				
			||||||
 | 
					      delete config['spec'].host;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return await new SwaggerClient(config);
 | 
					    return await new SwaggerClient(config);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue