mirror of
https://github.com/cubixle/tuu.git
synced 2026-04-30 17:08:46 +01:00
added env as a default param to the context data map
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user