comparison pkg/controllers/routes.go @ 1592:c12cec1d7692

Added PATCH /imports/scheduler/{id:[0-9]+} to modify a single import configuration.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 14 Dec 2018 13:25:19 +0100
parents 2d53065c95af
children b10aa02d7819
comparison
equal deleted inserted replaced
1591:2d53065c95af 1592:c12cec1d7692
176 })).Methods(http.MethodPost) 176 })).Methods(http.MethodPost)
177 177
178 // Import scheduler configuration 178 // Import scheduler configuration
179 api.Handle("/imports/scheduler/{id:[0-9]+}", 179 api.Handle("/imports/scheduler/{id:[0-9]+}",
180 waterwayAdmin(&JSONHandler{ 180 waterwayAdmin(&JSONHandler{
181 Handle: modifySchedule,
182 })).Methods(http.MethodPatch)
183
184 api.Handle("/imports/scheduler/{id:[0-9]+}",
185 waterwayAdmin(&JSONHandler{
181 Handle: deleteSchedule, 186 Handle: deleteSchedule,
182 })).Methods(http.MethodDelete) 187 })).Methods(http.MethodDelete)
183 188
184 api.Handle("/imports/scheduler/{id:[0-9]+}", 189 api.Handle("/imports/scheduler/{id:[0-9]+}",
185 waterwayAdmin(&JSONHandler{ 190 waterwayAdmin(&JSONHandler{