mirror of
https://github.com/hanxi/xiaomusic.git
synced 2026-03-31 10:49:44 +08:00
feat: 整理第三方播放设备的代码
This commit is contained in:
@@ -151,8 +151,8 @@ async def custom_event(sid, data):
|
||||
await sio.emit("response", {"action": "切歌", "status": data})
|
||||
|
||||
|
||||
@app.post("/items/")
|
||||
async def create_item(item: Item):
|
||||
@app.post("thdaction")
|
||||
async def thdaction(item: Item):
|
||||
await sio.emit(
|
||||
"response",
|
||||
{"action": item.action, "args": item.args, "status": item.args},
|
||||
|
||||
Reference in New Issue
Block a user