diff --git a/responses/responses.go b/responses/responses.go index 41cbed323713709c4e9a5cb0b692f2637fceb5c2..6f9fd87b25f700367f38d7a9b742386c28b7aeb8 100644 --- a/responses/responses.go +++ b/responses/responses.go @@ -124,3 +124,10 @@ func MovedPermanentlyResponse(url string) events.APIGatewayProxyResponse { Headers: map_utils.MergeMaps(utils.CorsHeaders(), map[string]string{"Location": url}), } } + +func FoundResponse(url string) events.APIGatewayProxyResponse { + return events.APIGatewayProxyResponse{ + StatusCode: http.StatusFound, + Headers: map_utils.MergeMaps(utils.CorsHeaders(), map[string]string{"Location": url}), + } +}