From f96930dcc8775391c49354331ddeba07773dfc3a Mon Sep 17 00:00:00 2001 From: hackrobot Date: Mon, 15 Jul 2024 22:13:55 +0800 Subject: [PATCH] update --- app/main.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 10fc9ba..1ff47d4 100644 --- a/app/main.py +++ b/app/main.py @@ -38,7 +38,9 @@ def root(): def hello(): return {"message": "Hello World"} -@app.get("/add", response_model=schemas.User) +# @app.get("/add", response_model=schemas.User) +@app.get("/add") + def add_user( nickname: Optional[str] = None, remark: Optional[str] = None,