    def routes(self) -> t.List[BaseRoute]:
        """
        Setup routes for Runner server, including:

        /healthz        liveness probe endpoint
        /readyz         Readiness probe endpoint
        /metrics        Prometheus metrics endpoint

        For method in self.runner.runner_methods:
        /{method.name}  Run corresponding runnable method
        /               Run the runnable method "__call__" if presented
        """
        from starlette.routing import Route

        routes = super().routes
        for method in self.runner.runner_methods:
            path = "/" if method.name == "__call__" else "/" + method.name
            routes.append(
                Route(
                    path=path,
                    endpoint=self._mk_request_handler(method, method.config.batchable),
                    methods=["POST"],
                )
            )
        return routes
Setup routes for Runner server, including:

/healthz        liveness probe endpoint
/readyz         Readiness probe endpoint
/metrics        Prometheus metrics endpoint

For method in self.runner.runner_methods:
/{method.name}  Run corresponding runnable method
/               Run the runnable method "__call__" if presented
src/bentoml/_internal/server/runner_app.py