comparison pkg/controllers/routes.go @ 1741:44398a8bdf94

Approved gauge measurements: Added a stub to upload a CSV file for parsing. TODO: Implement the parsing and store the values in the DB.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Wed, 09 Jan 2019 18:26:52 +0100
parents 73aab5f9a934
children c11807dc6940
comparison
equal deleted inserted replaced
1740:82a36eaf2366 1741:44398a8bdf94
170 })).Methods(http.MethodPost) 170 })).Methods(http.MethodPost)
171 171
172 api.Handle("/imports/soundingresult", waterwayAdmin( 172 api.Handle("/imports/soundingresult", waterwayAdmin(
173 http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) 173 http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost)
174 174
175 api.Handle("/imports/approvedgm", waterwayAdmin(
176 http.HandlerFunc(importApprovedGaugeMeasurements))).Methods(http.MethodPost)
177
175 api.Handle("/imports/bottleneck", waterwayAdmin(&JSONHandler{ 178 api.Handle("/imports/bottleneck", waterwayAdmin(&JSONHandler{
176 Input: func() interface{} { return new(models.BottleneckImport) }, 179 Input: func() interface{} { return new(models.BottleneckImport) },
177 Handle: manualImport(imports.BNJobKind, importBottleneck), 180 Handle: manualImport(imports.BNJobKind, importBottleneck),
178 NoConn: true, 181 NoConn: true,
179 })).Methods(http.MethodPost) 182 })).Methods(http.MethodPost)