Mercurial > gemma
comparison pkg/controllers/routes.go @ 4236:27ed6f709195
Remove unused systemconf.feature_colours from backend
* Remove unused routes for `/system/style/{feature}/{attr}`, including
the namespace `systemconf` from the schema. This has previously
be replaced by a more general mechanism, which is already used
by the frontend.
author | Bernhard Reiter <bernhard@intevation.de> |
---|---|
date | Wed, 21 Aug 2019 16:17:46 +0200 |
parents | 0601143ffd02 |
children | 4394daeea96a |
comparison
equal
deleted
inserted
replaced
4235:966d7eb6d99b | 4236:27ed6f709195 |
---|---|
86 api.Handle("/system/settings", sysAdmin(&JSONHandler{ | 86 api.Handle("/system/settings", sysAdmin(&JSONHandler{ |
87 Input: func(*http.Request) interface{} { return &map[string]string{} }, | 87 Input: func(*http.Request) interface{} { return &map[string]string{} }, |
88 Handle: setSystemSettings, | 88 Handle: setSystemSettings, |
89 })).Methods(http.MethodPut) | 89 })).Methods(http.MethodPut) |
90 | 90 |
91 api.Handle("/system/style/{feature}/{attr}", any(&JSONHandler{ | |
92 Handle: getFeatureStyle, | |
93 })).Methods(http.MethodGet) | |
94 | |
95 api.Handle("/system/style/{feature}/{attr}", any(&JSONHandler{ | |
96 Input: func(*http.Request) interface{} { return new(models.Colour) }, | |
97 Handle: setFeatureStyle, | |
98 })).Methods(http.MethodPut) | |
99 | |
100 // Password resets. | 91 // Password resets. |
101 api.Handle("/users/passwordreset", &JSONHandler{ | 92 api.Handle("/users/passwordreset", &JSONHandler{ |
102 Input: func(*http.Request) interface{} { return new(models.PWResetUser) }, | 93 Input: func(*http.Request) interface{} { return new(models.PWResetUser) }, |
103 Handle: passwordResetRequest, | 94 Handle: passwordResetRequest, |
104 NoConn: true, | 95 NoConn: true, |