[manual] Change API URLs to be based on api.humbughq.com/api.
This must be deployed after we update our running nginx configuration to serve api.humbughq.com. (imported from commit b5c34ebdd595f55eecd6dca6a18a37f105107bd5)
This commit is contained in:
		
							parent
							
								
									360d78e9a2
								
							
						
					
					
						commit
						5e2979b870
					
				
					 8 changed files with 13 additions and 12 deletions
				
			
		| 
						 | 
				
			
			@ -41,7 +41,7 @@ assert(LooseVersion(requests.__version__) >= LooseVersion('0.12.1'))
 | 
			
		|||
# In newer versions, the 'json' attribute is a function, not a property
 | 
			
		||||
requests_json_is_function = callable(requests.Response.json)
 | 
			
		||||
 | 
			
		||||
API_VERSTRING = "/api/v1/"
 | 
			
		||||
API_VERSTRING = "/v1/"
 | 
			
		||||
 | 
			
		||||
def generate_option_group(parser):
 | 
			
		||||
    group = optparse.OptionGroup(parser, 'API configuration')
 | 
			
		||||
| 
						 | 
				
			
			@ -94,7 +94,9 @@ class Client(object):
 | 
			
		|||
                site = "https://" + site
 | 
			
		||||
            self.base_url = site
 | 
			
		||||
        else:
 | 
			
		||||
            self.base_url = "https://humbughq.com"
 | 
			
		||||
            self.base_url = "https://api.humbughq.com"
 | 
			
		||||
        if self.base_url != "https://api.humbughq.com" and not self.base_url.endswith("/api"):
 | 
			
		||||
            self.base_url += "/api"
 | 
			
		||||
        self.retry_on_errors = retry_on_errors
 | 
			
		||||
        self.client_name = client
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue