mqtt: allow internal access to API endpoints
Signed-off-by: Eric Callahan <arksine.code@gmail.com>
This commit is contained in:
parent
2025332e6f
commit
4c087612d8
|
@ -192,11 +192,11 @@ class MQTTClient(APITransport, Subscribable):
|
|||
self.server.register_endpoint(
|
||||
"/server/mqtt/publish", ["POST"],
|
||||
self._handle_publish_request,
|
||||
transports=["http", "websocket"])
|
||||
transports=["http", "websocket", "internal"])
|
||||
self.server.register_endpoint(
|
||||
"/server/mqtt/subscribe", ["POST"],
|
||||
self._handle_subscription_request,
|
||||
transports=["http", "websocket"])
|
||||
transports=["http", "websocket", "internal"])
|
||||
|
||||
# Subscribe to API requests
|
||||
self.json_rpc = JsonRPC(transport="MQTT")
|
||||
|
|
Loading…
Reference in New Issue