comparison pkg/controllers/routes.go @ 1228:17131f0f9fcb

Added endpoint to explicitly delete a temp upload.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 19 Nov 2018 18:32:06 +0100
parents bc4b642c8d04
children 24e4c60c2606
comparison
equal deleted inserted replaced
1227:737e1acea1f1 1228:17131f0f9fcb
158 // Geo styling 158 // Geo styling
159 api.Handle("/geo/style/{feature}", 159 api.Handle("/geo/style/{feature}",
160 sysAdmin(http.HandlerFunc(uploadStyle))).Methods(http.MethodPost) 160 sysAdmin(http.HandlerFunc(uploadStyle))).Methods(http.MethodPost)
161 161
162 // Imports 162 // Imports
163 api.Handle("/imports/soundingresult-upload/{token}",
164 waterwayAdmin(http.HandlerFunc(deleteSoundingUpload))).Methods(http.MethodDelete)
165
163 api.Handle("/imports/soundingresult-upload", waterwayAdmin(&JSONHandler{ 166 api.Handle("/imports/soundingresult-upload", waterwayAdmin(&JSONHandler{
164 Handle: uploadSoundingResult, 167 Handle: uploadSoundingResult,
165 })).Methods(http.MethodPost) 168 })).Methods(http.MethodPost)
166 169
167 api.Handle("/imports/soundingresult", waterwayAdmin( 170 api.Handle("/imports/soundingresult", waterwayAdmin(