mirror of
https://github.com/Sun-ZhenXing/mcp-template-python.git
synced 2026-02-04 10:13:31 +00:00
feat: add rename
This commit is contained in:
@@ -2,6 +2,7 @@ import contextlib
|
||||
|
||||
from fastapi import FastAPI, Response
|
||||
from fastapi.middleware.cors import CORSMiddleware
|
||||
from fastapi_radar import Radar
|
||||
|
||||
from .__about__ import __version__
|
||||
from .app import MCP_MAP
|
||||
@@ -32,6 +33,9 @@ app.add_middleware(
|
||||
allow_headers=settings.cors.allow_headers.split(","),
|
||||
)
|
||||
|
||||
radar = Radar(app)
|
||||
radar.create_tables()
|
||||
|
||||
|
||||
@app.get("/")
|
||||
async def root():
|
||||
|
||||
Reference in New Issue
Block a user