Page Contents
Home > @loopback/rest > RedirectRoute > (constructor)
RedirectRoute.(constructor)
Constructs a new instance of the RedirectRoute class
Signature:
constructor(sourcePath: string, targetLocation: string, statusCode?: number);
Parameters
| Parameter | Type | Description |
|---|---|---|
|
sourcePath |
string | |
|
targetLocation |
string | |
|
statusCode |
number |
(Optional) |