From 7f9f3bbb4904caeda4dc9efc4f2360f11eebfedd Mon Sep 17 00:00:00 2001 From: hackrobot Date: Mon, 15 Jul 2024 18:50:47 +0800 Subject: [PATCH] update --- app/main.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/app/main.py b/app/main.py index 02f1197..1138f13 100644 --- a/app/main.py +++ b/app/main.py @@ -18,6 +18,11 @@ def get_db(): finally: db.close() +@app.get("/") +async def root(): + return {"message": "Hello World"} + + @app.get("/add", response_model=schemas.User) def add_user( nickname: Optional[str] = None,