feat: 添加API服务器配置和GraphQL路由,重载配置功能,更新日志信息

This commit is contained in:
墨梓柒
2025-05-04 13:43:30 +08:00
parent aa86387f36
commit 88a2b9d2ee
5 changed files with 136 additions and 101 deletions

View File

@@ -14,7 +14,7 @@ router = APIRouter()
logger = get_logger("api")
# maiapi = FastAPI()
logger.info("API server started.")
logger.info("麦麦API服务器已启动")
graphql_router = GraphQLRouter(schema=None, path="/") # Replace `None` with your actual schema
router.include_router(graphql_router, prefix="/graphql", tags=["GraphQL"])