comparison pkg/controllers/routes.go @ 1473:d349618c6b50 bulkreview

Import bulk review: Fixed handling of input document.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 30 Nov 2018 09:44:50 +0100
parents 702671b76eae
children 165f31b71042
comparison
equal deleted inserted replaced
1472:702671b76eae 1473:d349618c6b50
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{ 185 api.Handle("/imports", waterwayAdmin(&JSONHandler{
186 Input: func() interface{} { return []models.Review{} }, 186 Input: func() interface{} { return &[]models.Review{} },
187 Handle: reviewImports, 187 Handle: reviewImports,
188 })).Methods(http.MethodPatch) 188 })).Methods(http.MethodPatch)
189 189
190 api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&JSONHandler{ 190 api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&JSONHandler{
191 Handle: deleteImport, 191 Handle: deleteImport,