疯王伊里斯 (@100001) 在 FastApi 如何在 Vercel 上部署 中发帖
问 Ai 问得我气急败坏, 文档太长不知道从何翻起了.
这是我的 main.py:
from fastapi import FastAPI
from api.v1.responses_endpoint import router as responses_router
import uvicorn
import logging
app = FastAPI()
app.include_router(responses_router)
logging.basicConfig(
level=logging.INFO,
format='%(asctime)s - %(name)s - %(levelname)s - %(message)s'
)
@app.get("/")
async def root():
return {"message": "API i...