feat(editor):editor api

This commit is contained in:
yhjun1026 2023-08-01 19:45:15 +08:00
parent cc05400093
commit c689a63a73
3 changed files with 8 additions and 6 deletions

View File

@ -23,7 +23,7 @@
<img alt="Open Issues" src="https://img.shields.io/github/issues-raw/csunny/DB-GPT" /> <img alt="Open Issues" src="https://img.shields.io/github/issues-raw/csunny/DB-GPT" />
</a> </a>
<a href="https://discord.gg/eZHE94MN"> <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>
<a href="https://codespaces.new/csunny/DB-GPT"> <a href="https://codespaces.new/csunny/DB-GPT">
<img alt="Open in GitHub Codespaces" src="https://github.com/codespaces/badge.svg" /> <img alt="Open in GitHub Codespaces" src="https://github.com/codespaces/badge.svg" />
@ -167,7 +167,7 @@ The MIT License (MIT)
## Contact Information ## Contact Information
We are working on building a community, if you have any ideas about building the community, feel free to contact us. We are working on building a community, if you have any ideas about building the community, feel free to contact us.
[![](https://dcbadge.vercel.app/api/server/jDD5FwHh?compact=true&style=flat)](https://discord.gg/eZHE94MN) [![](https://dcbadge.vercel.app/api/server/eZHE94MN?compact=true&style=flat)](https://discord.gg/eZHE94MN)
<p align="center"> <p align="center">
<img src="./assets/wechat.jpg" width="300px" /> <img src="./assets/wechat.jpg" width="300px" />

View File

@ -55,7 +55,7 @@ async def get_editor_sql_rounds(con_uid: str):
return Result.succ(None) 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): async def get_editor_chart(con_uid: str, chart_uid: str):
return Result.succ(None) return Result.succ(None)

View File

@ -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.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) logging.basicConfig(level=logging.INFO)
@ -70,11 +70,13 @@ app.add_middleware(
) )
app.include_router(api_v1, prefix="/api") # app.include_router(api_v1, prefix="/api")
app.include_router(knowledge_router, 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(api_v1)
app.include_router(knowledge_router) 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("/_next/static", StaticFiles(directory=static_file_path + "/_next/static"))
app.mount("/", StaticFiles(directory=static_file_path, html=True), name="static") app.mount("/", StaticFiles(directory=static_file_path, html=True), name="static")