add home mdx

This commit is contained in:
2025-11-30 13:03:01 +08:00
parent 769f15aaf2
commit ecca716c83
6 changed files with 552 additions and 480 deletions

View File

@@ -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)}