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