summaryrefslogtreecommitdiffstats
path: root/api/admin.go
diff options
context:
space:
mode:
author=Corey Hulen <corey@hulen.com>2015-10-16 09:10:54 -0700
committer=Corey Hulen <corey@hulen.com>2015-10-16 09:10:54 -0700
commit6a1755d2e32c3f3bcaa67c33f32cb5eb5ab76ea2 (patch)
tree5ebe7ed520eddd8e13e75a4e2ca43e3bacda1f2b /api/admin.go
parentc890e21cefe135a74a4a7235b704e7af95decc5c (diff)
downloadchat-6a1755d2e32c3f3bcaa67c33f32cb5eb5ab76ea2.tar.gz
chat-6a1755d2e32c3f3bcaa67c33f32cb5eb5ab76ea2.tar.bz2
chat-6a1755d2e32c3f3bcaa67c33f32cb5eb5ab76ea2.zip
Inital support for multi-tab loging
Diffstat (limited to 'api/admin.go')
-rw-r--r--api/admin.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/api/admin.go b/api/admin.go
index cd1e5d2de..7a5616ede 100644
--- a/api/admin.go
+++ b/api/admin.go
@@ -24,7 +24,7 @@ func InitAdmin(r *mux.Router) {
sr.Handle("/config", ApiUserRequired(getConfig)).Methods("GET")
sr.Handle("/save_config", ApiUserRequired(saveConfig)).Methods("POST")
sr.Handle("/test_email", ApiUserRequired(testEmail)).Methods("POST")
- sr.Handle("/client_props", ApiAppHandler(getClientProperties)).Methods("GET")
+ sr.Handle("/client_props", ApiAppHandler(getClientConfig)).Methods("GET")
sr.Handle("/log_client", ApiAppHandler(logClient)).Methods("POST")
}
@@ -57,8 +57,8 @@ func getLogs(c *Context, w http.ResponseWriter, r *http.Request) {
w.Write([]byte(model.ArrayToJson(lines)))
}
-func getClientProperties(c *Context, w http.ResponseWriter, r *http.Request) {
- w.Write([]byte(model.MapToJson(utils.ClientProperties)))
+func getClientConfig(c *Context, w http.ResponseWriter, r *http.Request) {
+ w.Write([]byte(model.MapToJson(utils.ClientCfg)))
}
func logClient(c *Context, w http.ResponseWriter, r *http.Request) {