Correct me if I'm wrong, but there doesn't appear to be a way to specify redirects. Are there any plans to add a new decorator for such, or at least provide access to the response object?
You can get access to the response like so:
Get()
@SuccessResponse(302, "Redirect")
async myMethod(@Request() request: express.Request) {
const response = (<any>request).res as express.Response;
// response.redirect( .. );
}
@strongpauly does this ^ solve your problem?
Yes it does.
Most helpful comment
You can get access to the response like so: