diff --git a/README.md b/README.md index 5990a5c..5c84385 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ TODO: -* list config +* http utility: + 1. add parameters to the ProcessHeaders to enable/disable token/role-access-rights checks diff --git a/http_utility.go b/http_utility.go index fd30950..be45aa2 100644 --- a/http_utility.go +++ b/http_utility.go @@ -62,6 +62,7 @@ func RespondWithHttpError500(w http.ResponseWriter, req *http.Request) { //// HANDLER FUNC WRAPPER //// +//TODO: Add parameters to enable/disable token and roles authorization checks // Sets common headers and checks for token validity. func ProcessHeaders(fn http.HandlerFunc) http.HandlerFunc { return func(w http.ResponseWriter, req *http.Request) { diff --git a/json_utility.go b/json_utility.go index 16c8b5d..3e5ef5f 100644 --- a/json_utility.go +++ b/json_utility.go @@ -29,7 +29,7 @@ type CorrelationField struct { } type Translation struct { - Language string `json:"language"` + Language string `json:"language"` FieldsLabels map[string]string `json:"fieldsLabels"` }