Mercurial > gemma
diff 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 |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Wed Aug 07 13:11:16 2019 +0200 +++ b/pkg/controllers/routes.go Wed Aug 07 15:23:41 2019 +0200 @@ -247,7 +247,7 @@ kinds := strings.Join([]string{ "bn", "gm", "fa", "wx", "wa", "wg", "dmv", "fd", "dma", - "sec", + "sec", "dsec", }, "|") api.Handle("/imports/{kind:"+kinds+"}", waterwayAdmin(&JSONHandler{