Skip to content

Commit 871ca24

Browse files
committed
setup a basic fastapi route
1 parent 44b2c1d commit 871ca24

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

main.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
from fastapi import FastAPI
2+
3+
app = FastAPI()
4+
5+
6+
@app.get("/")
7+
async def root() -> dict:
8+
return {"Hello": "World"}

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fastapi==0.111.1
2+
psycopg2-binary==2.9.9
3+
SQLAlchemy==2.0.31

0 commit comments

Comments
 (0)