Commit 2887d5e6 authored by Jo Sama's avatar Jo Sama 😱
Browse files

Use urljoin() properly

parent a0915b07
......@@ -16,16 +16,16 @@ class Endpoints:
return urljoin(self.base_url, path)
def get_operator(self, identity):
return urljoin(self._prepend_base_url('/operators/id/'), identity)
return urljoin(self._prepend_base_url('operators/id/'), identity)
def get_operators(self):
return self._prepend_base_url('/operators/')
return self._prepend_base_url('operators/')
def get_person(self, identity):
return urljoin(self._prepend_base_url('/persons/id/'), identity)
return urljoin(self._prepend_base_url('persons/id/'), identity)
def get_persons(self):
return self._prepend_base_url('/persons/')
return self._prepend_base_url('persons/')
class TopDeskClient:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment