api: Make all endpoint paths relative.
Most of the endpoints we call in the bindings are put relative to the API's root. These two were absolute paths (i.e. they had a leading slash), so it has been changed for consistency.
This commit is contained in:
parent
c480657952
commit
5747e76c08
|
@ -860,7 +860,7 @@ class Client(object):
|
||||||
See examples/realm-emoji for example usage.
|
See examples/realm-emoji for example usage.
|
||||||
'''
|
'''
|
||||||
return self.call_endpoint(
|
return self.call_endpoint(
|
||||||
url='/realm/emoji',
|
url='realm/emoji',
|
||||||
method='GET'
|
method='GET'
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -873,7 +873,7 @@ class Client(object):
|
||||||
{'msg': '', 'result': 'success', 'zulip_version': '1.9.0', 'push_notifications_enabled': False, ...}
|
{'msg': '', 'result': 'success', 'zulip_version': '1.9.0', 'push_notifications_enabled': False, ...}
|
||||||
'''
|
'''
|
||||||
return self.call_endpoint(
|
return self.call_endpoint(
|
||||||
url='/server_settings',
|
url='server_settings',
|
||||||
method='GET',
|
method='GET',
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue