From 306bc8c9ad8e10e3adf72269bdc892d850a92d6a Mon Sep 17 00:00:00 2001 From: hackrobot Date: Mon, 15 Jul 2024 20:44:48 +0800 Subject: [PATCH] update --- app/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/main.py b/app/main.py index b8dc37f..39bc2cb 100644 --- a/app/main.py +++ b/app/main.py @@ -30,11 +30,11 @@ def get_db(): db.close() @app.get("/") -async def root(): +def root(): return {"message": "Hello World"} @app.get("/hello") -async def hello(): +def hello(): return {"message": "Hello World"} @app.get("/add", response_model=schemas.User)