add home mdx
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
---
|
||||
title: "Python 代码示例"
|
||||
description: "SIP 消息发送和 FastAPI 服务示例"
|
||||
---
|
||||
|
||||
# python 代码示例
|
||||
|
||||
```sh
|
||||
@@ -122,9 +127,9 @@ async def router(path: str = Query(...)):
|
||||
result = await test()
|
||||
else:
|
||||
return {"error": f"Unknown path: {path}"}
|
||||
|
||||
|
||||
return {"success": True, "data": result}
|
||||
|
||||
|
||||
except Exception as e:
|
||||
return {"success": False, "error": str(e)}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user