Stone.js API
    Preparing search index...
    • Publish the two operational endpoints as routes, when there is a router to publish them on.

      /health answers a verdict to a platform that cannot read; /version answers a fact to a person mid-investigation. Two questions, two endpoints, and neither belongs in an application's controllers: a blueprint middleware publishes them, for the same reason @stone-js/openapi publishes its own. Either path: false serves nothing, for a deployment that answers that question elsewhere.

      Parameters

      • context: BlueprintContext<IBlueprint>

        The blueprint context.

      • next: NextMiddleware<
            BlueprintContext<IBlueprint, ClassType<any> | PipeClass>,
            IBlueprint,
        >

        The next blueprint middleware.

      Returns Promise<IBlueprint>

      The blueprint.