Skip to content

Commit

Permalink
update (component-service): fastapi update
Browse files Browse the repository at this point in the history
  • Loading branch information
santanche committed Oct 5, 2024
1 parent b1bbf04 commit 07d2831
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions service/basic/fastapi/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
app = FastAPI()

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

@app.get("/double/{number}")
def read_item(number: int | None = None):
def double(number: int | None = None):
return {"double": (number * 2)}

0 comments on commit 07d2831

Please sign in to comment.