Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from app.models import ProfileCreate, ProfileResponse
from app.store import profile_store
import math



app = FastAPI(title="FastAPI Workshop", version="0.1.0")
Expand All @@ -26,7 +26,7 @@ def health_check():

@app.get("/sum")
def compute_sum(a: int = Query(...), b: int = Query(...)):
return {"result": a * b}
return {"result": a + b}


def format_profile(data):
Expand Down