summaryrefslogtreecommitdiffstats
path: root/api/context.go
diff options
context:
space:
mode:
Diffstat (limited to 'api/context.go')
-rw-r--r--api/context.go7
1 files changed, 5 insertions, 2 deletions
diff --git a/api/context.go b/api/context.go
index bd9744bf8..1347b9aed 100644
--- a/api/context.go
+++ b/api/context.go
@@ -32,7 +32,10 @@ type Context struct {
type Page struct {
TemplateName string
Props map[string]string
- ClientProps map[string]string
+ ClientCfg map[string]string
+ User *model.User
+ Team *model.Team
+ Session *model.Session
}
func ApiAppHandler(h func(*Context, http.ResponseWriter, *http.Request)) http.Handler {
@@ -479,7 +482,7 @@ func RenderWebError(err *model.AppError, w http.ResponseWriter, r *http.Request)
}
w.WriteHeader(err.StatusCode)
- ServerTemplates.ExecuteTemplate(w, "error.html", Page{Props: props, ClientProps: utils.ClientProperties})
+ ServerTemplates.ExecuteTemplate(w, "error.html", Page{Props: props, ClientCfg: utils.ClientCfg})
}
func Handle404(w http.ResponseWriter, r *http.Request) {