Стартовый проект с роутерами

This commit is contained in:
2024-07-31 17:24:45 +09:00
parent ece09af415
commit da2ae23831
9 changed files with 112 additions and 2 deletions

View File

View File

@ -0,0 +1,7 @@
from fastapi import APIRouter
router = APIRouter()
@router.get("/hello")
async def say_world():
return {"msg":"Hello WORLD!"}

View File

@ -0,0 +1,7 @@
from fastapi import APIRouter
router = APIRouter()
@router.get("/hello")
async def say_hello():
return {"msg":"hello"}