Mercurial > gemma
comparison pkg/controllers/routes.go @ 1534:165f31b71042
Bottleneck import: Added /api/imports/bottleneck POST endpoint.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 07 Dec 2018 14:54:39 +0100 |
parents | d349618c6b50 |
children | dc727824183a |
comparison
equal
deleted
inserted
replaced
1533:8fc1a2298acb | 1534:165f31b71042 |
---|---|
168 })).Methods(http.MethodPost) | 168 })).Methods(http.MethodPost) |
169 | 169 |
170 api.Handle("/imports/soundingresult", waterwayAdmin( | 170 api.Handle("/imports/soundingresult", waterwayAdmin( |
171 http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) | 171 http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) |
172 | 172 |
173 api.Handle("/imports/bottleneck", waterwayAdmin(&JSONHandler{ | |
174 Input: func() interface{} { return new(models.BottleneckImport) }, | |
175 Handle: importBottleneck, | |
176 })).Methods(http.MethodPost) | |
177 | |
173 // Import queue | 178 // Import queue |
174 lsImports := waterwayAdmin(&JSONHandler{ | 179 lsImports := waterwayAdmin(&JSONHandler{ |
175 Handle: listImports, | 180 Handle: listImports, |
176 }) | 181 }) |
177 | 182 |