Mercurial > gemma
diff pkg/controllers/routes.go @ 2962:8d825551bc72
Fairway availibity for bottlenecks: Started with fetchting the relevant data. TODO: Range calculations. WIP.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 08 Apr 2019 16:38:57 +0200 |
parents | 6f435a9558f2 |
children | 19fc84a98479 |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Mon Apr 08 16:27:37 2019 +0200 +++ b/pkg/controllers/routes.go Mon Apr 08 16:38:57 2019 +0200 @@ -298,6 +298,9 @@ })).Methods(http.MethodPut) // Handler to serve data to the client. + api.Handle("/data/bottleneck/availability/{objnam}", any(&JSONHandler{ + Handle: bottleneckAvailabilty, + })).Methods(http.MethodGet) api.Handle("/data/waterlevels/{gauge}", any( middleware.DBConn(http.HandlerFunc(waterlevels)))).Methods(http.MethodGet)