comparison pkg/controllers/routes.go @ 1468:5e1218b5a123 bulkreview

proof of concept
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 29 Nov 2018 12:09:01 +0100
parents 24e4c60c2606
children 286a3306f6bf
comparison
equal deleted inserted replaced
1413:c5e004b97394 1468:5e1218b5a123
180 180
181 api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&JSONHandler{ 181 api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&JSONHandler{
182 Handle: importLogs, 182 Handle: importLogs,
183 })).Methods(http.MethodGet) 183 })).Methods(http.MethodGet)
184 184
185 api.Handle("/imports", waterwayAdmin(&JSONHandler{
186 Handle: reviewImports,
187 })).Methods(http.MethodPatch)
188
185 api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&JSONHandler{ 189 api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&JSONHandler{
186 Handle: deleteImport, 190 Handle: deleteImport,
187 })).Methods(http.MethodDelete) 191 })).Methods(http.MethodDelete)
188 192
189 // Handler to review an import which is pending. 193 // Handler to review an import which is pending.