mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-10 09:59:48 +00:00
refactor: Do not return URL for API itself
This commit is contained in:
parent
25b6b9ca77
commit
a66ef79c3c
|
@ -109,9 +109,7 @@ class ServiceManager(Service):
|
|||
@staticmethod
|
||||
def get_url() -> typing.Optional[str]:
|
||||
"""Return service url."""
|
||||
domain = get_domain()
|
||||
subdomain = ServiceManager.get_subdomain()
|
||||
return f"https://{subdomain}.{domain}" if subdomain else None
|
||||
return None
|
||||
|
||||
@staticmethod
|
||||
def get_subdomain() -> typing.Optional[str]:
|
||||
|
|
Loading…
Reference in a new issue