diff options
author | Christopher Speller <crspeller@gmail.com> | 2015-09-16 12:52:50 -0400 |
---|---|---|
committer | Christopher Speller <crspeller@gmail.com> | 2015-09-16 12:52:50 -0400 |
commit | 7e418714bce067172e527359f391943459b3bd48 (patch) | |
tree | fb06d542eddb5ce8d63fce27bfe87f6c9c63adbb /api/admin.go | |
parent | 9828d84f01147ffb87b372d20681f91325ecfcf0 (diff) | |
parent | 4e3896d7b1911b8c184dee3c650461f0d3c0acea (diff) | |
download | chat-7e418714bce067172e527359f391943459b3bd48.tar.gz chat-7e418714bce067172e527359f391943459b3bd48.tar.bz2 chat-7e418714bce067172e527359f391943459b3bd48.zip |
Merge pull request #687 from mattermost/PLT-93
PLT-93 Cleaning up client side configs
Diffstat (limited to 'api/admin.go')
-rw-r--r-- | api/admin.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/api/admin.go b/api/admin.go index d4af1d247..6d7a9028f 100644 --- a/api/admin.go +++ b/api/admin.go @@ -20,6 +20,7 @@ func InitAdmin(r *mux.Router) { sr := r.PathPrefix("/admin").Subrouter() sr.Handle("/logs", ApiUserRequired(getLogs)).Methods("GET") + sr.Handle("/client_props", ApiAppHandler(getClientProperties)).Methods("GET") } func getLogs(c *Context, w http.ResponseWriter, r *http.Request) { @@ -49,3 +50,7 @@ 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))) +} |