diff pkg/controllers/routes.go @ 5375:755ed195fdc3 extented-report

Fix for 5486:dbae10503ee6
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Thu, 24 Jun 2021 18:39:03 +0200
parents cb46f50ba168
children d19fdf3d2099
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Thu Jun 24 16:13:35 2021 +0200
+++ b/pkg/controllers/routes.go	Thu Jun 24 18:39:03 2021 +0200
@@ -341,7 +341,7 @@
 			NoConn: true,
 		})).Methods(http.MethodGet)
 
-	api.Handle("/data/report/{name:[a-zA-Z0-9_]+}", waterwayAdmin(
+	api.Handle("/data/report/{name:[a-zA-Z0-9_-]+}", waterwayAdmin(
 		mw.DBConn(http.HandlerFunc(report)))).Methods(http.MethodGet)
 
 	// Handler to serve data to the client.