mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-15 06:53:12 +00:00
feat(editor):editor api
This commit is contained in:
parent
cc05400093
commit
c689a63a73
@ -23,7 +23,7 @@
|
||||
<img alt="Open Issues" src="https://img.shields.io/github/issues-raw/csunny/DB-GPT" />
|
||||
</a>
|
||||
<a href="https://discord.gg/eZHE94MN">
|
||||
<img alt="Discord" src="https://dcbadge.vercel.app/api/server/jDD5FwHh?compact=true&style=flat" />
|
||||
<img alt="Discord" src="https://dcbadge.vercel.app/api/server/eZHE94MN?compact=true&style=flat" />
|
||||
</a>
|
||||
<a href="https://codespaces.new/csunny/DB-GPT">
|
||||
<img alt="Open in GitHub Codespaces" src="https://github.com/codespaces/badge.svg" />
|
||||
@ -167,7 +167,7 @@ The MIT License (MIT)
|
||||
|
||||
## Contact Information
|
||||
We are working on building a community, if you have any ideas about building the community, feel free to contact us.
|
||||
[](https://discord.gg/eZHE94MN)
|
||||
[](https://discord.gg/eZHE94MN)
|
||||
|
||||
<p align="center">
|
||||
<img src="./assets/wechat.jpg" width="300px" />
|
||||
|
@ -55,7 +55,7 @@ async def get_editor_sql_rounds(con_uid: str):
|
||||
return Result.succ(None)
|
||||
|
||||
|
||||
@router.post("/v1/editor/chart", response_model=Result[ChartDetail])
|
||||
@router.get("/v1/editor/chart", response_model=Result[ChartDetail])
|
||||
async def get_editor_chart(con_uid: str, chart_uid: str):
|
||||
return Result.succ(None)
|
||||
|
||||
|
@ -30,7 +30,7 @@ from pilot.server.knowledge.api import router as knowledge_router
|
||||
|
||||
|
||||
from pilot.openapi.api_v1.api_v1 import router as api_v1, validation_exception_handler
|
||||
|
||||
from pilot.openapi.api_v1.editor.api_editor_v1 import router as api_editor_route_v1
|
||||
|
||||
logging.basicConfig(level=logging.INFO)
|
||||
|
||||
@ -70,11 +70,13 @@ app.add_middleware(
|
||||
)
|
||||
|
||||
|
||||
app.include_router(api_v1, prefix="/api")
|
||||
app.include_router(knowledge_router, prefix="/api")
|
||||
# app.include_router(api_v1, prefix="/api")
|
||||
# app.include_router(knowledge_router, prefix="/api")
|
||||
# app.include_router(api_editor_route_v1, prefix="/api")
|
||||
|
||||
app.include_router(api_v1)
|
||||
app.include_router(knowledge_router)
|
||||
app.include_router(api_editor_route_v1)
|
||||
|
||||
app.mount("/_next/static", StaticFiles(directory=static_file_path + "/_next/static"))
|
||||
app.mount("/", StaticFiles(directory=static_file_path, html=True), name="static")
|
||||
|
Loading…
Reference in New Issue
Block a user