change base_url to admin_api_url
This commit is contained in:
parent
b4a7afde81
commit
e3baca0fa1
1 changed files with 1 additions and 1 deletions
|
@ -17,7 +17,7 @@ class SynapseApiClient:
|
||||||
|
|
||||||
def request(self, method: str, endpoint: str, params = None) -> Dict[str, Any]:
|
def request(self, method: str, endpoint: str, params = None) -> Dict[str, Any]:
|
||||||
"""Send a request to the Synapse API."""
|
"""Send a request to the Synapse API."""
|
||||||
url = f"{self.config.base_url}{endpoint}"
|
url = f"{self.config.admin_api_url}{endpoint}"
|
||||||
try:
|
try:
|
||||||
response = self.session.request(method, url, params)
|
response = self.session.request(method, url, params)
|
||||||
response.raise_for_status()
|
response.raise_for_status()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue