Mercurial > gemma
comparison pkg/controllers/routes.go @ 2073:e6dccc7a3ea1
Waterway profiles import: Added upload route.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 30 Jan 2019 17:23:22 +0100 |
parents | 09f9ae3d0526 |
children | b66cfcde8ff7 |
comparison
equal
deleted
inserted
replaced
2072:b4d8d320feab | 2073:e6dccc7a3ea1 |
---|---|
175 http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) | 175 http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) |
176 | 176 |
177 api.Handle("/imports/agm", waterwayAdmin( | 177 api.Handle("/imports/agm", waterwayAdmin( |
178 http.HandlerFunc(importApprovedGaugeMeasurements))).Methods(http.MethodPost) | 178 http.HandlerFunc(importApprovedGaugeMeasurements))).Methods(http.MethodPost) |
179 | 179 |
180 api.Handle("/imports/wp", waterwayAdmin( | |
181 http.HandlerFunc(importWaterwayProfiles))).Methods(http.MethodPost) | |
182 | |
180 api.Handle("/imports/{kind:st}", sysAdmin(&JSONHandler{ | 183 api.Handle("/imports/{kind:st}", sysAdmin(&JSONHandler{ |
181 Input: importModel, | 184 Input: importModel, |
182 Handle: manualImport, | 185 Handle: manualImport, |
183 NoConn: true, | 186 NoConn: true, |
184 })).Methods(http.MethodPost) | 187 })).Methods(http.MethodPost) |