Skip to content

Commit c0d9fcc

Browse files
committed
First code for FastAPI
1 parent b37cf8f commit c0d9fcc

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

server-fastapi/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
venv/

server-fastapi/main.py

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

0 commit comments

Comments
 (0)