Mercurial > gemma
diff pkg/controllers/gauges.go @ 4243:d776110b4db0 json-handler-middleware
Made the de-serialized input of the JSON handler accessible via the context of the request.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 22 Aug 2019 10:54:08 +0200 |
parents | 1458c9b0fdaa |
children | 4394daeea96a |
line wrap: on
line diff
--- a/pkg/controllers/gauges.go Thu Aug 22 10:18:13 2019 +0200 +++ b/pkg/controllers/gauges.go Thu Aug 22 10:54:08 2019 +0200 @@ -574,10 +574,8 @@ return values, nil } -func nashSutcliffe( - _ interface{}, - req *http.Request, -) (jr JSONResult, err error) { +func nashSutcliffe(req *http.Request) (jr JSONResult, err error) { + gauge := mux.Vars(req)["gauge"] var isrs *models.Isrs