JSR

Registers a followers collection dispatcher.

Parameters

path: `${string}${Rfc6570Expression<"identifier">}${string}`

View code

The URI path pattern for the followers collection. The syntax is based on URI Template (RFC 6570). The path must have one variable: {identifier}.

A followers collection callback to register.

Return Type

An object with methods to set other followers collection callbacks.

Throws

@link RouterError

View code

Thrown if the path pattern is invalid.

Read the original on jsr.io ↗