Mercurial > gemma
comparison pkg/controllers/routes.go @ 4189:2ac52d89619e
Exposed the import to delete sections under POST /api/imports/dsec with a JSON input as '{ "id": 42 }'.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 07 Aug 2019 15:23:41 +0200 |
parents | ed4820efb7e6 |
children | 0601143ffd02 |
comparison
equal
deleted
inserted
replaced
4188:f8b7db7e392a | 4189:2ac52d89619e |
---|---|
245 })).Methods(http.MethodPost) | 245 })).Methods(http.MethodPost) |
246 | 246 |
247 kinds := strings.Join([]string{ | 247 kinds := strings.Join([]string{ |
248 "bn", "gm", "fa", "wx", "wa", | 248 "bn", "gm", "fa", "wx", "wa", |
249 "wg", "dmv", "fd", "dma", | 249 "wg", "dmv", "fd", "dma", |
250 "sec", | 250 "sec", "dsec", |
251 }, "|") | 251 }, "|") |
252 | 252 |
253 api.Handle("/imports/{kind:"+kinds+"}", waterwayAdmin(&JSONHandler{ | 253 api.Handle("/imports/{kind:"+kinds+"}", waterwayAdmin(&JSONHandler{ |
254 Input: importModel, | 254 Input: importModel, |
255 Handle: manualImport, | 255 Handle: manualImport, |