Mercurial > gemma
comparison 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 |
comparison
equal
deleted
inserted
replaced
1636:37ee25bc2bbe | 1637:dd31be75ce6d |
---|---|
174 api.Handle("/imports/bottleneck", waterwayAdmin(&JSONHandler{ | 174 api.Handle("/imports/bottleneck", waterwayAdmin(&JSONHandler{ |
175 Input: func() interface{} { return new(models.BottleneckImport) }, | 175 Input: func() interface{} { return new(models.BottleneckImport) }, |
176 Handle: importBottleneck, | 176 Handle: importBottleneck, |
177 })).Methods(http.MethodPost) | 177 })).Methods(http.MethodPost) |
178 | 178 |
179 api.Handle("/imports/gaugemeasurement", waterwayAdmin(&JSONHandler{ | |
180 Input: func() interface{} { return new(models.GaugeMeasurementImport) }, | |
181 Handle: importGaugeMeasurement, | |
182 })).Methods(http.MethodPost) | |
183 | |
179 // Import scheduler configuration | 184 // Import scheduler configuration |
180 api.Handle("/imports/config/{id:[0-9]+}", | 185 api.Handle("/imports/config/{id:[0-9]+}", |
181 waterwayAdmin(&JSONHandler{ | 186 waterwayAdmin(&JSONHandler{ |
182 Handle: modifyImportConfig, | 187 Handle: modifyImportConfig, |
183 })).Methods(http.MethodPatch) | 188 })).Methods(http.MethodPatch) |