diff --git a/app/main.py b/app/main.py index e63257a..5070ff3 100644 --- a/app/main.py +++ b/app/main.py @@ -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):