Skip to content

Commit

Permalink
- Add cors management on all routes
Browse files Browse the repository at this point in the history
- Creation of Swagger file
- Add API doc on README.md file
  • Loading branch information
Nicolas Choquet committed Mar 15, 2024
1 parent 1be4f12 commit b161ff2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion check-validity.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down

0 comments on commit b161ff2

Please sign in to comment.