comparison pkg/controllers/routes.go @ 2191:4b9496752d89

Upload bottleneck import: Added stub.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 12 Feb 2019 10:44:00 +0100
parents 0627565fb4d2
children 8d1a945d0c3b
comparison
equal deleted inserted replaced
2190:ecb0ad836aa0 2191:4b9496752d89
203 http.HandlerFunc(importApprovedGaugeMeasurements))).Methods(http.MethodPost) 203 http.HandlerFunc(importApprovedGaugeMeasurements))).Methods(http.MethodPost)
204 204
205 api.Handle("/imports/wp", waterwayAdmin( 205 api.Handle("/imports/wp", waterwayAdmin(
206 http.HandlerFunc(importWaterwayProfiles))).Methods(http.MethodPost) 206 http.HandlerFunc(importWaterwayProfiles))).Methods(http.MethodPost)
207 207
208 api.Handle("/imports/ubn", waterwayAdmin(
209 http.HandlerFunc(importUploadedBottleneck))).Methods(http.MethodPost)
210
208 api.Handle("/imports/{kind:st}", sysAdmin(&JSONHandler{ 211 api.Handle("/imports/{kind:st}", sysAdmin(&JSONHandler{
209 Input: importModel, 212 Input: importModel,
210 Handle: manualImport, 213 Handle: manualImport,
211 NoConn: true, 214 NoConn: true,
212 })).Methods(http.MethodPost) 215 })).Methods(http.MethodPost)