Files
WLED/.venv/lib/python3.11/site-packages/ajsonrpc/backend/quart.py
wartana bb17574d0c
Some checks failed
WLED CI / wled_build (push) Has been cancelled
build: Initialize Python virtual environment and install project dependencies.
2026-02-19 22:31:26 +08:00

18 lines
452 B
Python

import json
from quart import Response, request
from .common import CommonBackend
class JSONRPCQuart(CommonBackend):
@property
def handler(self):
"""Get Quart Handler"""
async def handle():
request_body = await request.body
response = await self.manager.get_response_for_payload(request_body)
return Response(json.dumps(response.body), mimetype="application/json")
return handle