mirror of
https://github.com/bytedance/deer-flow.git
synced 2026-10-26 13:16:24 +00:00
docs(harness): import the Gateway app from the module that defines it (#6169)
Both the en and zh integration guides show `from deerflow.app.gateway.main import app`, but there is no deerflow.app package and no gateway/main.py in the tree: the FastAPI instance is created by create_app() and bound at module level in backend/app/gateway/app.py, which is also how backend/AGENTS.md documents it. The copy-pasteable snippet now names that module, so mounting the Gateway as a sub-application works from the documented import instead of failing at runtime.
This commit is contained in:
parent
63e399f2bd
commit
571a7e40e4
@ -110,7 +110,7 @@ from fastapi import FastAPI
|
||||
app = FastAPI()
|
||||
|
||||
# Mount the DeerFlow gateway router
|
||||
from deerflow.app.gateway.main import app as gateway_app
|
||||
from app.gateway.app import app as gateway_app
|
||||
app.mount("/deerflow", gateway_app)
|
||||
```
|
||||
|
||||
|
||||
@ -107,7 +107,7 @@ from fastapi import FastAPI
|
||||
app = FastAPI()
|
||||
|
||||
# 挂载 DeerFlow Gateway
|
||||
from deerflow.app.gateway.main import app as gateway_app
|
||||
from app.gateway.app import app as gateway_app
|
||||
app.mount("/deerflow", gateway_app)
|
||||
```
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user