Mercurial > gemma
comparison pkg/controllers/routes.go @ 1224:bc4b642c8d04
Started with an upload sounding result to temp upload area.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 19 Nov 2018 17:14:42 +0100 |
parents | 3afa71405b87 |
children | 17131f0f9fcb |
comparison
equal
deleted
inserted
replaced
1223:a20fcfacda98 | 1224:bc4b642c8d04 |
---|---|
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", | 163 api.Handle("/imports/soundingresult-upload", waterwayAdmin(&JSONHandler{ |
164 waterwayAdmin(http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) | 164 Handle: uploadSoundingResult, |
165 })).Methods(http.MethodPost) | |
166 | |
167 api.Handle("/imports/soundingresult", waterwayAdmin( | |
168 http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) | |
165 | 169 |
166 // Import queue | 170 // Import queue |
167 lsImports := waterwayAdmin(&JSONHandler{ | 171 lsImports := waterwayAdmin(&JSONHandler{ |
168 Handle: listImports, | 172 Handle: listImports, |
169 }) | 173 }) |