@swizzyweb/swizzy-web-service
    Preparing search index...

    Interface IInternalWebRouterProps<APP_STATE, ROUTER_STATE>

    Internal construction props for the base WebRouter class. Extend this interface when building concrete router implementations.

    interface IInternalWebRouterProps<APP_STATE, ROUTER_STATE> {
        logger: ILogger<any>;
        middleware?: SwizzyMiddleware<ROUTER_STATE>[];
        name: string;
        path: string;
        stateConverter: StateConverter<APP_STATE, ROUTER_STATE>;
        webControllerClasses: NewWebControllerClass<ROUTER_STATE, any>[];
    }

    Type Parameters

    • APP_STATE
    • ROUTER_STATE

    Hierarchy (View Summary)

    Index

    Properties

    logger: ILogger<any>

    Logger instance provided by the parent web service.

    Optional middleware applied to every request through this router.

    name: string

    Display name for this router.

    path: string

    URL path prefix for all controllers on this router.

    Converts the parent app state into the router-level state.

    webControllerClasses: NewWebControllerClass<ROUTER_STATE, any>[]

    Controller classes to mount on this router.