comparison pkg/controllers/routes.go @ 5576:2b862190aee4 surveysperbottleneckid

merge with default
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 08 Feb 2022 10:20:26 +0100
parents 6709530f002e 38640b20360d
children 2dd155cc95ec
comparison
equal deleted inserted replaced
5575:6709530f002e 5576:2b862190aee4
338 })).Methods(http.MethodPut) 338 })).Methods(http.MethodPut)
339 339
340 // Handler for reporting 340 // Handler for reporting
341 341
342 api.Handle("/data/reports", 342 api.Handle("/data/reports",
343 waterwayAdmin(&mw.JSONHandler{ 343 any(&mw.JSONHandler{
344 Handle: listReports, 344 Handle: listReports,
345 NoConn: true, 345 NoConn: true,
346 })).Methods(http.MethodGet) 346 })).Methods(http.MethodGet)
347 347
348 api.Handle("/data/report/{name:"+models.SafePathExp+"}", waterwayAdmin( 348 api.Handle("/data/report/{name:"+models.SafePathExp+"}", waterwayAdmin(