changeset 5237:6ba7e6ac0882 new-fwa

Switched kind and type parts in route.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Tue, 12 May 2020 15:52:10 +0200
parents b47a041e03c4
children 2f513505bc88 158a26bcb2af
files pkg/controllers/routes.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Tue May 12 15:04:12 2020 +0200
+++ b/pkg/controllers/routes.go	Tue May 12 15:52:10 2020 +0200
@@ -324,7 +324,7 @@
 
 	// Handler to serve data to the client.
 
-	api.Handle("/data/{kind:stretch|section|bottleneck}/{type:availability|fairway}/{name:.+}", any(
+	api.Handle("/data/{type:availability|fairway}/{kind:stretch|section|bottleneck}/{name:.+}", any(
 		mw.DBConn(http.HandlerFunc(fairwayAvailability)))).Methods(http.MethodGet)
 
 	api.Handle("/data/stretch/shape/{name:.+}", any(