From dc9a30e346376545e5f15d757d4462af2b74045a Mon Sep 17 00:00:00 2001 From: hackrobot Date: Mon, 15 Jul 2024 20:25:28 +0800 Subject: [PATCH] update --- app/main.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/main.py b/app/main.py index 1138f13..6731782 100644 --- a/app/main.py +++ b/app/main.py @@ -22,7 +22,10 @@ def get_db(): async def root(): return {"message": "Hello World"} - +@app.get("/hello") +async def hello(): + return {"message": "Hello World"} + @app.get("/add", response_model=schemas.User) def add_user( nickname: Optional[str] = None,