|
@@ -25,6 +25,7 @@
|
|
|
from fastapi import FastAPI
|
|
|
from api_demo.v1.impl.BookImpl import book_router
|
|
|
from api_demo.v1.impl.MusicImpl import music_router
|
|
|
+from api_demo.v1.impl.AnswerImpl import answer_router
|
|
|
|
|
|
app = FastAPI()
|
|
|
|
|
@@ -34,6 +35,9 @@ app.include_router(book_router, prefix="/books", tags=["books"])
|
|
|
# 注册音乐搜索相关的路由
|
|
|
app.include_router(music_router, prefix="/music", tags=["music"])
|
|
|
|
|
|
+# 注册answer搜索相关的路由
|
|
|
+app.include_router(answer_router, prefix="/answer", tags=["answer"])
|
|
|
+
|
|
|
if __name__ == "__main__":
|
|
|
import uvicorn
|
|
|
uvicorn.run(app, host="127.0.0.1", port=8000)
|