Skip to content

Commit

Permalink
fastapi ã예제메ì�예제메인함수 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
choisungwook committed Apr 27, 2022
1 parent 9816816 commit 2fac9d0
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions app/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from typing import Optional
from fastapi import FastAPI

app = FastAPI()

@app.get("/")
def read_root():
return {"Hello": "World"}

@app.get("/items/{item_id}")
def read_item(item_id: int, q: Optional[str] = None):
return {"item_id": item_id, "q": q}
13 changes: 13 additions & 0 deletions app/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
anyio==3.5.0
asgiref==3.5.0
click==8.1.2
colorama==0.4.4
fastapi==0.75.2
h11==0.13.0
idna==3.3
pydantic==1.9.0
python-dotenv==0.20.0
sniffio==1.2.0
starlette==0.17.1
typing_extensions==4.2.0
uvicorn==0.17.6

0 comments on commit 2fac9d0

Please sign in to comment.