Mercurial > gemma
diff 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 |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Wed Feb 13 17:47:33 2019 +0100 +++ b/pkg/controllers/routes.go Wed Feb 13 18:18:41 2019 +0100 @@ -199,20 +199,20 @@ api.Handle("/imports/sr", waterwayAdmin( http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) - api.Handle("/imports/agm", waterwayAdmin( - http.HandlerFunc(importApprovedGaugeMeasurements))).Methods(http.MethodPost) - api.Handle("/imports/wp", waterwayAdmin( http.HandlerFunc(importWaterwayProfiles))).Methods(http.MethodPost) + api.Handle("/imports/agm", waterwayAdmin( + http.HandlerFunc(importApprovedGaugeMeasurements()))).Methods(http.MethodPost) + api.Handle("/imports/ubn", waterwayAdmin( - http.HandlerFunc(importUploadedBottleneck))).Methods(http.MethodPost) + http.HandlerFunc(importUploadedBottleneck()))).Methods(http.MethodPost) api.Handle("/imports/ufa", waterwayAdmin( - http.HandlerFunc(importUploadedFairwayAvailability))).Methods(http.MethodPost) + http.HandlerFunc(importUploadedFairwayAvailability()))).Methods(http.MethodPost) api.Handle("/imports/ugm", waterwayAdmin( - http.HandlerFunc(importUploadedGaugeMeasurement))).Methods(http.MethodPost) + http.HandlerFunc(importUploadedGaugeMeasurement()))).Methods(http.MethodPost) api.Handle("/imports/{kind:st}", sysAdmin(&JSONHandler{ Input: importModel,