diff options
| author | AAGaming <aa@mail.catvibers.me> | 2023-07-10 18:41:56 -0400 |
|---|---|---|
| committer | marios8543 <marios8543@gmail.com> | 2023-11-14 00:04:56 +0200 |
| commit | 1921e7ec56b39d4a6af111a75cf74c495800abc6 (patch) | |
| tree | 216d56a2cda1db60d148fa743719766b3c7f6fe0 /backend/decky_loader/utilities.py | |
| parent | 05b41b341027dc80e62935a2d0a953c847bdb44b (diff) | |
| download | decky-loader-1921e7ec56b39d4a6af111a75cf74c495800abc6.tar.gz decky-loader-1921e7ec56b39d4a6af111a75cf74c495800abc6.zip | |
JS -> Python WS now functional
Diffstat (limited to 'backend/decky_loader/utilities.py')
| -rw-r--r-- | backend/decky_loader/utilities.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/backend/decky_loader/utilities.py b/backend/decky_loader/utilities.py index f04ed371..20280c24 100644 --- a/backend/decky_loader/utilities.py +++ b/backend/decky_loader/utilities.py @@ -63,7 +63,11 @@ class Utilities: web.post("/methods/{method_name}", self._handle_server_method_call) ]) - async def _handle_server_method_call(self, request: web.Request): + context.ws.add_route("utilities/ping", self.ping) + context.ws.add_route("utilities/settings/get", self.get_setting) + context.ws.add_route("utilities/settings/set", self.set_setting) + + async def _handle_server_method_call(self, request): method_name = request.match_info["method_name"] try: args = await request.json() |
