Mercurial > gemma
diff pkg/controllers/routes.go @ 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 | 7c54babe10f7 |
children | 44398a8bdf94 |
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)