diff --git a/app/main.py b/app/main.py index f9e31db..17653b3 100644 --- a/app/main.py +++ b/app/main.py @@ -25,7 +25,7 @@ def health_check(): @app.get("/sum") -def compute_sum(a: int = Query(...), b: int = Query(...)): +def compute_sum(a: int = Query(...), b: int = Query(...))-> dict[str, int]: return {"result": a + b} @@ -36,7 +36,6 @@ def format_profile(data): "age": data.get("age"), } - @app.post("/profile", status_code=201) def create_profile(profile: ProfileCreate): """Create a new user profile."""