Class RouteResponseFactory

Response factory that sends an HTTP redirect to the given destination.

Hierarchy

Constructors

Properties

Methods

Constructors

Properties

nameOrPath: string

The alias or path of the route to redirect to.

targetStatus: HTTPStatus = HTTPStatus.MOVED_TEMPORARILY

The status that should be set on the response.

Methods