From fb8932e3c93ad73235b0912b34362f4c61d86a3e Mon Sep 17 00:00:00 2001 From: Kirill Zhdanov Date: Sat, 31 Aug 2024 00:24:07 +0700 Subject: [PATCH] fix: 3-28: move `status_code` to path decorator (#10) --- example/3-28.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/example/3-28.py b/example/3-28.py index e6cfb6c..8d1ab2f 100644 --- a/example/3-28.py +++ b/example/3-28.py @@ -1,3 +1,3 @@ -@app.get("/happy") -def happy(status_code=200): +@app.get("/happy", status_code=200) +def happy(): return ":)"