feat: 前端接入说明页 + 网关首页索引
- static/integration.html: 5接口入参/出参表、fetch示例、错误码、在线测试页链接 - gateway/app.py: 首页 / 增加 test_pages 和 integration_guide 索引
This commit is contained in:
+8
-2
@@ -185,11 +185,17 @@ async def health():
|
||||
|
||||
@app.get("/", include_in_schema=False)
|
||||
async def index():
|
||||
cfg = load_config()
|
||||
return {
|
||||
"service": "旷视五接口 — 网关",
|
||||
"version": "0.1.0",
|
||||
"docs": f"{cfg['public_base_url']}/docs",
|
||||
"docs": "/docs",
|
||||
"integration_guide": "/static/integration.html",
|
||||
"test_pages": {
|
||||
"if1_measure": "/static/test_interface1.html",
|
||||
"if2_hair_grow": "/static/test_interface2.html",
|
||||
"if3_hair_grow_b": "/static/test_interface3.html",
|
||||
"if5_hairline": "/static/test_interface5.html",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user