Skip to content

Commit a894816

Browse files
author
Fred Liang
committed
feat: init fastapi support
1 parent aed92e4 commit a894816

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

fastapi/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():
8+
return {"message": "hello, oasis"}

fastapi/requirements.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
fastapi
2+
uvicorn

0 commit comments

Comments
 (0)