Files
uv-fastapi-tortoise/project/api/example/router.py
T
2026-01-28 08:59:33 -03:00

14 lines
311 B
Python

from fastapi import APIRouter
from project.api.example.schemas import MessageSchema
router = APIRouter(tags=["Example"])
@router.get("/hello")
async def hello_world() -> MessageSchema:
"""An example API endpoint that returns a hello world message."""
return MessageSchema(message="Hello, World!")