Mercurial > gemma
comparison pkg/controllers/routes.go @ 1662:d8ca44615bfc
Implemented first version of fairway availability import.
author | Raimund Renkert <raimund.renkert@intevation.de> |
---|---|
date | Fri, 21 Dec 2018 15:56:28 +0100 |
parents | dd31be75ce6d |
children | aaa05d3c4aac |
comparison
equal
deleted
inserted
replaced
1661:51a0ba4ede41 | 1662:d8ca44615bfc |
---|---|
179 api.Handle("/imports/gaugemeasurement", waterwayAdmin(&JSONHandler{ | 179 api.Handle("/imports/gaugemeasurement", waterwayAdmin(&JSONHandler{ |
180 Input: func() interface{} { return new(models.GaugeMeasurementImport) }, | 180 Input: func() interface{} { return new(models.GaugeMeasurementImport) }, |
181 Handle: importGaugeMeasurement, | 181 Handle: importGaugeMeasurement, |
182 })).Methods(http.MethodPost) | 182 })).Methods(http.MethodPost) |
183 | 183 |
184 api.Handle("/imports/fairwayavailability", waterwayAdmin(&JSONHandler{ | |
185 Input: func() interface{} { return new(models.FairwayAvailabilityImport) }, | |
186 Handle: importFairwayAvailability, | |
187 })).Methods(http.MethodPost) | |
188 | |
184 // Import scheduler configuration | 189 // Import scheduler configuration |
185 api.Handle("/imports/config/{id:[0-9]+}", | 190 api.Handle("/imports/config/{id:[0-9]+}", |
186 waterwayAdmin(&JSONHandler{ | 191 waterwayAdmin(&JSONHandler{ |
187 Handle: modifyImportConfig, | 192 Handle: modifyImportConfig, |
188 })).Methods(http.MethodPatch) | 193 })).Methods(http.MethodPatch) |