auth.provider API
    Preparing search index...

    A route contribution. Per A2-α §4.6:

    • mountPath MUST start with "/".
    • handler is the Express-compatible router or middleware.
    • id is an optional collision-identity hint. Two RouteContributions with the same id MUST throw at boot. Two with the same mountPath and no id SHOULD throw.

    The handler's interior is opaque to the boot planner per A2-α §4.7 (handler opacity is structural, not a defect).

    A2-β §4.2 adds three optional fields:

    • routes: fine-grained advertisement of method + path pairs exposed by this contribution. The boot planner uses effective mountPath + advertisement.path for collision identity.
    • before: token array of contribution ids this contribution must be mounted before. Resolved by the boot planner's assemble-app stage §5.6 step 1.
    • after: token array of contribution ids this contribution must be mounted after. Resolved alongside before.
    interface RouteContribution {
        after?: readonly string[];
        before?: readonly string[];
        handler: RouteHandler;
        id?: string;
        mountPath: string;
        routes?: readonly RouteAdvertisement[];
    }
    Index

    Properties

    after?: readonly string[]

    Contribution id tokens this contribution must be mounted after. Per A2-β §4.2; resolved at assemble-app stage §5.6.

    before?: readonly string[]

    Contribution id tokens this contribution must be mounted before. Per A2-β §4.2; resolved at assemble-app stage §5.6.

    handler: RouteHandler
    id?: string
    mountPath: string
    routes?: readonly RouteAdvertisement[]

    Fine-grained route advertisements. Per A2-β §4.2. The boot planner uses these for sub-router collision detection.