changeset 1732:73aab5f9a934

Import configuration: Modification endpoint needs an inpit document.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 09 Jan 2019 15:02:59 +0100
parents 8dd7452929ca
children 4cf4d31eae0a
files pkg/controllers/routes.go
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Wed Jan 09 13:57:36 2019 +0100
+++ b/pkg/controllers/routes.go	Wed Jan 09 15:02:59 2019 +0100
@@ -205,6 +205,7 @@
 
 	api.Handle("/imports/config/{id:[0-9]+}",
 		waterwayAdmin(&JSONHandler{
+			Input:  func() interface{} { return new(imports.Config) },
 			Handle: modifyImportConfig,
 		})).Methods(http.MethodPatch)