mirror of
https://github.com/lnbits/lnbits-legend.git
synced 2024-11-19 18:11:30 +01:00
added get option
This commit is contained in:
parent
4b707b5a30
commit
2f08255e92
@ -733,6 +733,10 @@ async def websocket_connect(websocket: WebSocket, item_id: str):
|
||||
async def websocket_update(item_id: str, data: str):
|
||||
await updater(item_id, data)
|
||||
|
||||
@core_app.get("/api/v1/ws/{item_id}/{data}")
|
||||
async def websocket_update(item_id: str, data: str):
|
||||
await updater(item_id, data)
|
||||
|
||||
async def updater(item_id, data):
|
||||
return await manager.send_data(
|
||||
f"{data}", item_id
|
||||
|
Loading…
Reference in New Issue
Block a user