comparison pkg/controllers/routes.go @ 846:6902032757e4

Added end point to set style (colour) information for feature.
author Sascha Wilde <wilde@intevation.de>
date Fri, 28 Sep 2018 11:51:06 +0200
parents 0f61bfc21041
children 29c11f4bf9db
comparison
equal deleted inserted replaced
845:596ef3b46028 846:6902032757e4
56 56
57 // System Settings 57 // System Settings
58 api.Handle("/system/style/{feature}/{attr}", any(&JSONHandler{ 58 api.Handle("/system/style/{feature}/{attr}", any(&JSONHandler{
59 Handle: getFeatureStyle, 59 Handle: getFeatureStyle,
60 })).Methods(http.MethodGet) 60 })).Methods(http.MethodGet)
61
62 api.Handle("/system/style/{feature}/{attr}", any(&JSONHandler{
63 Input: func() interface{} { return new(models.Colour) },
64 Handle: setFeatureStyle,
65 })).Methods(http.MethodPut)
61 66
62 // Password resets. 67 // Password resets.
63 api.Handle("/users/passwordreset", &JSONHandler{ 68 api.Handle("/users/passwordreset", &JSONHandler{
64 Input: func() interface{} { return new(models.PWResetUser) }, 69 Input: func() interface{} { return new(models.PWResetUser) },
65 Handle: passwordResetRequest, 70 Handle: passwordResetRequest,