Add FastApi to work with Nextjs Api routes

This commit is contained in:
Diego Valdez 2023-05-26 09:35:06 -06:00
commit 5a3a47d1f3
7 changed files with 370 additions and 11 deletions

Binary file not shown.

7
api/index.py Normal file
View file

@ -0,0 +1,7 @@
from fastapi import FastAPI
app = FastAPI()
@app.get("/api/python")
def hello_world():
return {"message": "Hello World"}