Page Contents

Home > @loopback/rest > RedirectRoute

RedirectRoute class

Signature:

export declare class RedirectRoute implements RouteEntry, ResolvedRoute 

Implements: RouteEntry, ResolvedRoute

Constructors

Constructor Modifiers Description
[(constructor)(sourcePath, targetLocation, statusCode)](/doc/en/lb4/apidocs.rest.redirectroute._constructor_.html) Constructs a new instance of the `RedirectRoute` class

Properties

Property Modifiers Type Description
[path](/doc/en/lb4/apidocs.rest.redirectroute.path.html) `readonly` string
[pathParams](/doc/en/lb4/apidocs.rest.redirectroute.pathparams.html) `readonly` [PathParameterValues](/doc/en/lb4/apidocs.rest.pathparametervalues.html)
[schemas](/doc/en/lb4/apidocs.rest.redirectroute.schemas.html) `readonly` SchemasObject
[sourcePath](/doc/en/lb4/apidocs.rest.redirectroute.sourcepath.html) `readonly` string
[spec](/doc/en/lb4/apidocs.rest.redirectroute.spec.html) `readonly` OperationObject
[statusCode](/doc/en/lb4/apidocs.rest.redirectroute.statuscode.html) `readonly` number
[targetLocation](/doc/en/lb4/apidocs.rest.redirectroute.targetlocation.html) `readonly` string
[verb](/doc/en/lb4/apidocs.rest.redirectroute.verb.html) `readonly` string

Methods

Method Modifiers Description
[describe()](/doc/en/lb4/apidocs.rest.redirectroute.describe.html)
[invokeHandler({ response }, args)](/doc/en/lb4/apidocs.rest.redirectroute.invokehandler.html)
[isRedirectRoute(obj)](/doc/en/lb4/apidocs.rest.redirectroute.isredirectroute.html) `static` type guard type checker for this class
[updateBindings(requestContext)](/doc/en/lb4/apidocs.rest.redirectroute.updatebindings.html)