Create routes/hello.py
Browse files- routes/hello.py +7 -0
routes/hello.py
ADDED
@@ -0,0 +1,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
from fastapi import APIRouter
|
2 |
+
|
3 |
+
router = APIRouter()
|
4 |
+
|
5 |
+
@router.get("/hello")
|
6 |
+
def hello_world():
|
7 |
+
return {"message": "Hello, World!"}
|