From b161ff2306a22e0c7507a499935d3f8e8f7d0625 Mon Sep 17 00:00:00 2001 From: Nicolas Choquet Date: Fri, 15 Mar 2024 02:05:23 +0100 Subject: [PATCH] - Add cors management on all routes - Creation of Swagger file - Add API doc on README.md file --- check-validity.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/check-validity.go b/check-validity.go index 4f01574..eac9dbb 100644 --- a/check-validity.go +++ b/check-validity.go @@ -9,7 +9,7 @@ type CheckValidity struct { IsValid bool `json:"isValid"` } -func checkValidity(writer http.ResponseWriter, _request *http.Request) { +func checkValidity(writer http.ResponseWriter, _ *http.Request) { writer.Header().Set("Access-Control-Allow-Origin", "*") writer.Header().Add("Content-Type", "application/json")