Mercurial > gemma
comparison pkg/controllers/routes.go @ 2256:0d272d7bcfb9
Uploaded imports: Unified agm, ubn, ufa and ugm import endpoints and removed a lot c&p code.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 13 Feb 2019 18:18:41 +0100 |
parents | 35db2e11c966 |
children | dc5a806dcfdc |
comparison
equal
deleted
inserted
replaced
2255:33af355047e1 | 2256:0d272d7bcfb9 |
---|---|
197 })).Methods(http.MethodPost) | 197 })).Methods(http.MethodPost) |
198 | 198 |
199 api.Handle("/imports/sr", waterwayAdmin( | 199 api.Handle("/imports/sr", waterwayAdmin( |
200 http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) | 200 http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) |
201 | 201 |
202 api.Handle("/imports/agm", waterwayAdmin( | |
203 http.HandlerFunc(importApprovedGaugeMeasurements))).Methods(http.MethodPost) | |
204 | |
205 api.Handle("/imports/wp", waterwayAdmin( | 202 api.Handle("/imports/wp", waterwayAdmin( |
206 http.HandlerFunc(importWaterwayProfiles))).Methods(http.MethodPost) | 203 http.HandlerFunc(importWaterwayProfiles))).Methods(http.MethodPost) |
207 | 204 |
205 api.Handle("/imports/agm", waterwayAdmin( | |
206 http.HandlerFunc(importApprovedGaugeMeasurements()))).Methods(http.MethodPost) | |
207 | |
208 api.Handle("/imports/ubn", waterwayAdmin( | 208 api.Handle("/imports/ubn", waterwayAdmin( |
209 http.HandlerFunc(importUploadedBottleneck))).Methods(http.MethodPost) | 209 http.HandlerFunc(importUploadedBottleneck()))).Methods(http.MethodPost) |
210 | 210 |
211 api.Handle("/imports/ufa", waterwayAdmin( | 211 api.Handle("/imports/ufa", waterwayAdmin( |
212 http.HandlerFunc(importUploadedFairwayAvailability))).Methods(http.MethodPost) | 212 http.HandlerFunc(importUploadedFairwayAvailability()))).Methods(http.MethodPost) |
213 | 213 |
214 api.Handle("/imports/ugm", waterwayAdmin( | 214 api.Handle("/imports/ugm", waterwayAdmin( |
215 http.HandlerFunc(importUploadedGaugeMeasurement))).Methods(http.MethodPost) | 215 http.HandlerFunc(importUploadedGaugeMeasurement()))).Methods(http.MethodPost) |
216 | 216 |
217 api.Handle("/imports/{kind:st}", sysAdmin(&JSONHandler{ | 217 api.Handle("/imports/{kind:st}", sysAdmin(&JSONHandler{ |
218 Input: importModel, | 218 Input: importModel, |
219 Handle: manualImport, | 219 Handle: manualImport, |
220 NoConn: true, | 220 NoConn: true, |