Mercurial > gemma
diff pkg/controllers/routes.go @ 1637:dd31be75ce6d
Implemented gauge measurement import.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Thu, 20 Dec 2018 12:06:37 +0100 |
parents | b10aa02d7819 |
children | d8ca44615bfc |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Thu Dec 20 12:05:30 2018 +0100 +++ b/pkg/controllers/routes.go Thu Dec 20 12:06:37 2018 +0100 @@ -176,6 +176,11 @@ Handle: importBottleneck, })).Methods(http.MethodPost) + api.Handle("/imports/gaugemeasurement", waterwayAdmin(&JSONHandler{ + Input: func() interface{} { return new(models.GaugeMeasurementImport) }, + Handle: importGaugeMeasurement, + })).Methods(http.MethodPost) + // Import scheduler configuration api.Handle("/imports/config/{id:[0-9]+}", waterwayAdmin(&JSONHandler{