diff 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
line wrap: on
line diff
--- a/pkg/controllers/surveys.go	Thu Aug 22 10:18:13 2019 +0200
+++ b/pkg/controllers/surveys.go	Thu Aug 22 10:54:08 2019 +0200
@@ -41,10 +41,7 @@
 WHERE b.objnam = $1 AND s.date_info::timestamptz <@ b.validity`
 )
 
-func listSurveys(
-	_ interface{},
-	req *http.Request,
-) (jr JSONResult, err error) {
+func listSurveys(req *http.Request) (jr JSONResult, err error) {
 
 	bottleneckName := mux.Vars(req)["bottleneck"]