diff --git a/app/main.py b/app/main.py index 9ee0acf..49561a1 100644 --- a/app/main.py +++ b/app/main.py @@ -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): @@ -60,7 +60,7 @@ def get_profile(username: str): def delete_profile(username: str): """Delete a user profile by username.""" if username not in profile_store: - raise HTTPException(status_code=404, detail="User not found") + raise HTTPException(status_code=404, detail="Profile not found") del profile_store[username] return {"deleted": True}