from fastapi import APIRouter class MMVC_Rest_Hello: def __init__(self): self.router = APIRouter() self.router.add_api_route("/api/hello", self.hello, methods=["GET"]) def hello(self): return {"result": "Index"}