
# Required to decorate the function and the FastAPI to allow you to add on the internal route and can generate the documentation correctly.
from fastapi import APIRouter 


# Need to initialize to decorate the main function
router = APIRouter()

@router.get("/hello_fastapi")
async def main(request): # Mandatory use of "async
    return {"message": "Hello FastAPI"}

6a1c133122f3996a905c0c0a6c1cf9ecb8337b28
<mask token>

<mask token>


@router.get('/hello_fastapi')
async def main(request):
    return {'message': 'Hello FastAPI'}

<mask token>
router = APIRouter()


@router.get('/hello_fastapi')
async def main(request):
    return {'message': 'Hello FastAPI'}

from fastapi import APIRouter
router = APIRouter()


@router.get('/hello_fastapi')
async def main(request):
    return {'message': 'Hello FastAPI'}


# Required to decorate the function and the FastAPI to allow you to add on the internal route and can generate the documentation correctly.
from fastapi import APIRouter 


# Need to initialize to decorate the main function
router = APIRouter()

@router.get("/hello_fastapi")
async def main(request): # Mandatory use of "async
    return {"message": "Hello FastAPI"}
