fix:memperbaiki vercel3

This commit is contained in:
muhamad fais aizat 2025-05-16 14:33:00 +07:00
parent 2a2e79a1f0
commit 08f2f01dee
3 changed files with 4 additions and 0 deletions

View File

@ -7,6 +7,10 @@ from fastapi.middleware.cors import CORSMiddleware
app = FastAPI()
@app.get("/")
def root():
return {"message": "FastAPI is running on Vercel!"}
# Konfigurasi Swagger agar hanya meminta token (tanpa login ulang)
def custom_openapi():
if app.openapi_schema: