From 59c70314c51f5fac8fc13449a374128ad79d3da0 Mon Sep 17 00:00:00 2001
From: "daniel.naude" <danieln@bob.co.za>
Date: Tue, 19 Mar 2024 14:25:38 +0200
Subject: [PATCH] Add FoundResponse function to responses.go

---
 responses/responses.go | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/responses/responses.go b/responses/responses.go
index 41cbed3..6f9fd87 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}),
+	}
+}
-- 
GitLab