Add FastApi to work with Nextjs Api routes
This commit is contained in:
parent
9a88d6e746
commit
5a3a47d1f3
7 changed files with 370 additions and 11 deletions
BIN
api/__pycache__/index.cpython-39.pyc
Normal file
BIN
api/__pycache__/index.cpython-39.pyc
Normal file
Binary file not shown.
7
api/index.py
Normal file
7
api/index.py
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
from fastapi import FastAPI
|
||||
|
||||
app = FastAPI()
|
||||
|
||||
@app.get("/api/python")
|
||||
def hello_world():
|
||||
return {"message": "Hello World"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue