Mercurial > gemma
comparison pkg/controllers/surveys.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 |
comparison
equal
deleted
inserted
replaced
4242:1458c9b0fdaa | 4243:d776110b4db0 |
---|---|
39 ON s.depth_reference = r.depth_reference | 39 ON s.depth_reference = r.depth_reference |
40 AND g.location = r.location AND g.validity = r.validity | 40 AND g.location = r.location AND g.validity = r.validity |
41 WHERE b.objnam = $1 AND s.date_info::timestamptz <@ b.validity` | 41 WHERE b.objnam = $1 AND s.date_info::timestamptz <@ b.validity` |
42 ) | 42 ) |
43 | 43 |
44 func listSurveys( | 44 func listSurveys(req *http.Request) (jr JSONResult, err error) { |
45 _ interface{}, | |
46 req *http.Request, | |
47 ) (jr JSONResult, err error) { | |
48 | 45 |
49 bottleneckName := mux.Vars(req)["bottleneck"] | 46 bottleneckName := mux.Vars(req)["bottleneck"] |
50 | 47 |
51 var rows *sql.Rows | 48 var rows *sql.Rows |
52 | 49 |