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

    Interface IWebController<ROUTER_STATE, CONTROLLER_STATE>

    Swizzy web controller interface.

    interface IWebController<ROUTER_STATE, CONTROLLER_STATE> {
        action: string;
        method: RequestMethod;
        name: string;
        controller(): WebControllerFunction;
        initialize(props: IWebControllerInitProps<ROUTER_STATE>): Promise<void>;
        installableController(): InstallableController<CONTROLLER_STATE>;
        toJson(): any;
        toString(): any;
    }

    Type Parameters

    • ROUTER_STATE
    • CONTROLLER_STATE

    Implemented by

    Index

    Properties

    action: string

    URL segment appended to the router path for this controller, e.g. /users.

    HTTP method this controller responds to.

    name: string

    Display name for this controller.

    Methods

    • Serializes the controller to a plain JSON-compatible object.

      Returns any

    • Returns a JSON string representation of this controller.

      Returns any