From 6740568afb5c470429e476c9b551a45791d026f8 Mon Sep 17 00:00:00 2001 From: lrodham Date: Thu, 4 Jan 2018 22:58:41 +0000 Subject: [PATCH] added env as a default param to the context data map --- default_context.go | 1 + 1 file changed, 1 insertion(+) diff --git a/default_context.go b/default_context.go index 6a827ce..07800fb 100644 --- a/default_context.go +++ b/default_context.go @@ -14,6 +14,7 @@ import ( func NewContext(r Route, res http.ResponseWriter, req *http.Request, env string) *DefaultContext { data := make(map[string]interface{}) data["path"] = r.Path + data["env"] = env params := req.URL.Query() vars := mux.Vars(req)