diff 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
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Fri Dec 14 12:49:44 2018 +0100
+++ b/pkg/controllers/routes.go	Fri Dec 14 13:25:19 2018 +0100
@@ -178,6 +178,11 @@
 	// Import scheduler configuration
 	api.Handle("/imports/scheduler/{id:[0-9]+}",
 		waterwayAdmin(&JSONHandler{
+			Handle: modifySchedule,
+		})).Methods(http.MethodPatch)
+
+	api.Handle("/imports/scheduler/{id:[0-9]+}",
+		waterwayAdmin(&JSONHandler{
 			Handle: deleteSchedule,
 		})).Methods(http.MethodDelete)