Mercurial > gemma
comparison pkg/controllers/routes.go @ 3171:c8ded555c2a8
Sections import: Added a sections import. Derived from the stretches import w/o the countries.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 06 May 2019 16:36:03 +0200 |
parents | ad5a00ccd276 |
children | 4c254651d80b |
comparison
equal
deleted
inserted
replaced
3170:5c8ecab9f2d4 | 3171:c8ded555c2a8 |
---|---|
232 })).Methods(http.MethodPost) | 232 })).Methods(http.MethodPost) |
233 | 233 |
234 kinds := strings.Join([]string{ | 234 kinds := strings.Join([]string{ |
235 "bn", "gm", "fa", "wx", "wa", | 235 "bn", "gm", "fa", "wx", "wa", |
236 "wg", "dmv", "fd", "dma", | 236 "wg", "dmv", "fd", "dma", |
237 "sec", | |
237 }, "|") | 238 }, "|") |
238 | 239 |
239 api.Handle("/imports/{kind:"+kinds+"}", waterwayAdmin(&JSONHandler{ | 240 api.Handle("/imports/{kind:"+kinds+"}", waterwayAdmin(&JSONHandler{ |
240 Input: importModel, | 241 Input: importModel, |
241 Handle: manualImport, | 242 Handle: manualImport, |