diff pkg/controllers/routes.go @ 1591:2d53065c95af

Added GET /imports/scheduler/{id:[0-9]+} to show infos about single import configuration.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 14 Dec 2018 12:49:44 +0100
parents 2fdd8e57542d
children c12cec1d7692
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Fri Dec 14 12:34:12 2018 +0100
+++ b/pkg/controllers/routes.go	Fri Dec 14 12:49:44 2018 +0100
@@ -181,6 +181,11 @@
 			Handle: deleteSchedule,
 		})).Methods(http.MethodDelete)
 
+	api.Handle("/imports/scheduler/{id:[0-9]+}",
+		waterwayAdmin(&JSONHandler{
+			Handle: infoSchedule,
+		})).Methods(http.MethodGet)
+
 	api.Handle("/imports/scheduler",
 		waterwayAdmin(&JSONHandler{
 			Input:  func() interface{} { return new(models.ImportConfig) },