AbstractOptionalactualActual express router initialized in initialize method
Protectedloggerlogger
Protected ReadonlymiddlewareRouter middleware
ReadonlynameWeb router name
ReadonlypathURL path prefix for all controllers mounted on this router.
OptionalstateProtected ReadonlywebController classes to be attached to this router
StaticisFlag for if this is a webrouter, alwaus true for all web routers
Protectedgetoveride this to configure your router, ensuring you call super first.
ProtectedgetReturns the middleware list configured for this router. Override to provide a dynamic middleware list.
array of swizzy middleware factories
Returns the current router-level state.
the router state, or an empty object if not yet initialized
Initializes router, needs to be called before calling router() method.
ProtectedinstallReturns true if the router has already been initialized.
Serializes the router to a plain JSON-compatible object.
JSON representation of this router
Returns a JSON string representation of this router.
stringified JSON of the router
Removes this router and all of its controllers/middleware from the app.
contains the Express app instance
Public interface for a Swizzy web router.