configurable redirect

This commit is contained in:
AF 2023-03-31 11:28:01 +00:00
parent 2945b39e0a
commit 84131d3c50

View File

@ -61,7 +61,11 @@ class Context:
raise RuntimeError("secret not set")
def redirect(self) -> str:
return "https://music.parrrate.ru/auth/"
match self.config("redirect"):
case str() as result:
return result
case _:
raise RuntimeError("redirect not set")
def ready(self) -> bool:
match self.config("ready", False):