Function: SubscriberMiddleware()
Function: SubscriberMiddleware()
function SubscriberMiddleware(context, next): Promise<IBlueprint>;
Middleware to add subscribers to the blueprint.
This middleware identifies modules marked as subscribers and adds them to the blueprint's list of subscribers.
Parameters
context
BlueprintContext<IBlueprint, ClassType>
The configuration context containing modules and blueprint.
next
NextPipe<BlueprintContext<IBlueprint, ClassType>, IBlueprint>
The next function in the pipeline.
Returns
Promise<IBlueprint>
The updated blueprint.
Example
SubscriberMiddleware({ modules, blueprint }, next);
