AbstractConstructor with internal props.
ReadonlyactionUrl Action, ie: /service/router/controller <-- this.
OptionalactualConfigured in initialize.
ProtectedloggerLogger
ReadonlymethodHtto method.
Display name for this controller.
OptionalstateProtectedstateConverts router state to this controller state.
Static ReadonlyisReturns the initialized controller function.
Protected Abstractgetoveride this to configure your router, ensuring you call super first.
Returns the resolved middleware functions to be applied before this controller.
Each SwizzyMiddleware factory is invoked with the current state and logger.
array of Express middleware functions
ProtectedgetReturns the current controller-level state, or undefined if not yet initialized.
Initialize controller. Must be called before calling controller()
Returns an InstallableController descriptor used by the router to mount
this controller onto an Express router.
Serializes the controller to a plain JSON-compatible object. Logger is omitted for safety.
JSON representation of this controller
Returns a JSON string representation of this controller.
stringified JSON of the controller
Base web controller class to be used by routers.