from ninja import NinjaAPI router = NinjaAPI() @router.get('/') async def index(request): return {'message': 'Welcome to the Stock API'}