Commit ecec68b180e9b45dbd74f8a2f423a94e0b174b27

Authored by Marko Tikvić
1 parent 8dbe745c3c
Exists in master and in 1 other branch v2

updated todo list

Showing 3 changed files with 4 additions and 2 deletions   Show diff stats
1 1 TODO:
2   -* list config
  2 +* http utility:
  3 + 1. add parameters to the ProcessHeaders to enable/disable token/role-access-rights checks
... ...
... ... @@ -62,6 +62,7 @@ func RespondWithHttpError500(w http.ResponseWriter, req *http.Request) {
62 62 //// HANDLER FUNC WRAPPER
63 63 ////
64 64  
  65 +//TODO: Add parameters to enable/disable token and roles authorization checks
65 66 // Sets common headers and checks for token validity.
66 67 func ProcessHeaders(fn http.HandlerFunc) http.HandlerFunc {
67 68 return func(w http.ResponseWriter, req *http.Request) {
... ...
... ... @@ -29,7 +29,7 @@ type CorrelationField struct {
29 29 }
30 30  
31 31 type Translation struct {
32   - Language string `json:"language"`
  32 + Language string `json:"language"`
33 33 FieldsLabels map[string]string `json:"fieldsLabels"`
34 34 }
35 35  
... ...