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
|
@staticmethod
|
||||||
def get_url() -> typing.Optional[str]:
|
def get_url() -> typing.Optional[str]:
|
||||||
"""Return service url."""
|
"""Return service url."""
|
||||||
domain = get_domain()
|
return None
|
||||||
subdomain = ServiceManager.get_subdomain()
|
|
||||||
return f"https://{subdomain}.{domain}" if subdomain else None
|
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def get_subdomain() -> typing.Optional[str]:
|
def get_subdomain() -> typing.Optional[str]:
|
||||||
|
|
Loading…
Reference in a new issue