From b2a679c25da42c4665059965830858da4f0ec238 Mon Sep 17 00:00:00 2001 From: =Corey Hulen Date: Tue, 15 Sep 2015 18:59:14 -0700 Subject: PLT-93 cleaing up client side configs --- api/admin.go | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'api/admin.go') 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))) +} -- cgit v1.2.3-1-g7c22