diff pkg/controllers/routes.go @ 5184:445daeefca7b new-fwa

Added controller stub for new fairway availability.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 23 Mar 2020 15:29:55 +0100
parents d727641911a5
children 3c748b2b4de6
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Fri Mar 20 17:24:03 2020 +0100
+++ b/pkg/controllers/routes.go	Mon Mar 23 15:29:55 2020 +0100
@@ -329,6 +329,9 @@
 
 	// Handler to serve data to the client.
 
+	api.Handle("/data/{kind:stretch|section|bottleneck}/fairway/{name:.+}", any(
+		mw.DBConn(http.HandlerFunc(fairwayAvailability)))).Methods(http.MethodGet)
+
 	api.Handle("/data/stretch/shape/{name:.+}", any(
 		mw.DBConn(http.HandlerFunc(stretchShapeDownload)))).Methods(http.MethodGet)