fix:memperbaiki vercel3
This commit is contained in:
parent
2a2e79a1f0
commit
08f2f01dee
Binary file not shown.
Binary file not shown.
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue