diff options
| author | AAGaming <aa@mail.catvibers.me> | 2022-06-30 16:04:29 -0400 |
|---|---|---|
| committer | AAGaming <aa@mail.catvibers.me> | 2022-06-30 16:04:29 -0400 |
| commit | d72f364a8d032ca53c35c22c8dbe01ba354629df (patch) | |
| tree | 9cc49e3854feed4579a9bf170c975daa8e1c5258 /backend/main.py | |
| parent | da0f7dd337502476a625709775f07ef9ec4f0c44 (diff) | |
| download | decky-loader-d72f364a8d032ca53c35c22c8dbe01ba354629df.tar.gz decky-loader-d72f364a8d032ca53c35c22c8dbe01ba354629df.zip | |
backwards-compatible plugin store, legacy plugin library
Diffstat (limited to 'backend/main.py')
| -rw-r--r-- | backend/main.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/backend/main.py b/backend/main.py index f942ee29..afd3cc21 100644 --- a/backend/main.py +++ b/backend/main.py @@ -9,8 +9,7 @@ CONFIG = { "server_host": getenv("SERVER_HOST", "127.0.0.1"), "server_port": int(getenv("SERVER_PORT", "1337")), "live_reload": getenv("LIVE_RELOAD", "1") == "1", - "log_level": {"CRITICAL": 50, "ERROR": 40, "WARNING":30, "INFO": 20, "DEBUG": 10}[getenv("LOG_LEVEL", "INFO")], - "store_url": getenv("STORE_URL", "https://beta.deckbrew.xyz") + "log_level": {"CRITICAL": 50, "ERROR": 40, "WARNING":30, "INFO": 20, "DEBUG": 10}[getenv("LOG_LEVEL", "INFO")] } basicConfig(level=CONFIG["log_level"], format="[%(module)s][%(levelname)s]: %(message)s") @@ -44,7 +43,7 @@ class PluginManager: allow_headers="*") }) self.plugin_loader = Loader(self.web_app, CONFIG["plugin_path"], self.loop, CONFIG["live_reload"]) - self.plugin_browser = PluginBrowser(CONFIG["plugin_path"], self.web_app, CONFIG["store_url"]) + self.plugin_browser = PluginBrowser(CONFIG["plugin_path"], self.web_app) self.utilities = Utilities(self) jinja_setup(self.web_app) @@ -57,6 +56,7 @@ class PluginManager: for route in list(self.web_app.router.routes()): self.cors.add(route) self.web_app.add_routes([static("/static", path.join(path.dirname(__file__), 'static'))]) + self.web_app.add_routes([static("/legacy", path.join(path.dirname(__file__), 'legacy'))]) def exception_handler(self, loop, context): if context["message"] == "Unclosed connection": |
