Skip to content

Commit bb114e6

Browse files
initial fastapi files
1 parent 87b1ed9 commit bb114e6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

backend/api/index.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from fastapi import FastAPI
2+
from fastapi.responses import JSONResponse
3+
from mangum import Mangum
4+
5+
app = FastAPI()
6+
7+
@app.get("/")
8+
async def root():
9+
return {"message": "Hello from FastAPI on Vercel!"}
10+
11+
# Required for Vercel
12+
handler = Mangum(app)

0 commit comments

Comments
 (0)