comparison pkg/controllers/routes.go @ 2301:dc5a806dcfdc

Routes: Fixed route to distance marks ashore.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 18 Feb 2019 12:16:31 +0100
parents 0d272d7bcfb9
children 07f892bc4bb0
comparison
equal deleted inserted replaced
2300:3dd2de314b1b 2301:dc5a806dcfdc
220 NoConn: true, 220 NoConn: true,
221 })).Methods(http.MethodPost) 221 })).Methods(http.MethodPost)
222 222
223 kinds := strings.Join([]string{ 223 kinds := strings.Join([]string{
224 "bn", "gm", "fa", "wx", "wa", 224 "bn", "gm", "fa", "wx", "wa",
225 "wg", "dmv", "fd", "dm", 225 "wg", "dmv", "fd", "dma",
226 }, "|") 226 }, "|")
227 227
228 api.Handle("/imports/{kind:"+kinds+"}", waterwayAdmin(&JSONHandler{ 228 api.Handle("/imports/{kind:"+kinds+"}", waterwayAdmin(&JSONHandler{
229 Input: importModel, 229 Input: importModel,
230 Handle: manualImport, 230 Handle: manualImport,