From ecec68b180e9b45dbd74f8a2f423a94e0b174b27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marko=20Tikvi=C4=87?= Date: Thu, 22 Sep 2016 12:04:45 +0200 Subject: [PATCH] updated todo list --- README.md | 3 ++- http_utility.go | 1 + json_utility.go | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) 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"` } -- 1.8.1.2