diff --git a/config/api_example_config.py b/config/api_example_config.py index 32996cca9c500e5c7f13be36b28110e6f77bfb8e..9a21cd941c633b7edea21cda81af305464574724 100644 --- a/config/api_example_config.py +++ b/config/api_example_config.py @@ -2,7 +2,7 @@ DEBUG = True # Name of this instance -SERVER_NAME = "dev" +API_SERVER_NAME = "dev" # Prefix which is prepended to paths (which are saved in the database) before they are provided by the api # Must include the last / diff --git a/src/api/routes/site.py b/src/api/routes/site.py index f9c420ddba787e04061784e3652b169cef231931..9ed4edae7b253dc1bdac0760991c05589d33a0ca 100644 --- a/src/api/routes/site.py +++ b/src/api/routes/site.py @@ -11,7 +11,7 @@ _GIT_COMMIT_HASH = os.environ.get("VIDEOAG_API_GIT_COMMIT_HASH", None) if _GIT_COMMIT_HASH is not None and len(_GIT_COMMIT_HASH) == 0: _GIT_COMMIT_HASH = None -_SERVER_NAME = api.config["SERVER_NAME"] +_SERVER_NAME = api.config["API_SERVER_NAME"] @api_route("/status", ["GET"], allow_while_readonly=True, allow_while_disabled=True)