diff options
author | hmhealey <harrisonmhealey@gmail.com> | 2015-08-13 13:23:56 -0400 |
---|---|---|
committer | hmhealey <harrisonmhealey@gmail.com> | 2015-08-13 13:23:56 -0400 |
commit | 8fc4456213c5ee16863b7f1bcb20e35a19469a1d (patch) | |
tree | fa33fc50e8380e3a08b49ea11d1450b5f1bb9d15 /api/config.go | |
parent | ca919538cc402ed90ce42ffc3ef98994bb1081f4 (diff) | |
download | chat-8fc4456213c5ee16863b7f1bcb20e35a19469a1d.tar.gz chat-8fc4456213c5ee16863b7f1bcb20e35a19469a1d.tar.bz2 chat-8fc4456213c5ee16863b7f1bcb20e35a19469a1d.zip |
Removed isEmailEnabledSynchronous and switched the email disabled warnings to use ConfigStore
Diffstat (limited to 'api/config.go')
-rw-r--r-- | api/config.go | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/api/config.go b/api/config.go index d8d52ca67..142d1ca66 100644 --- a/api/config.go +++ b/api/config.go @@ -18,7 +18,6 @@ func InitConfig(r *mux.Router) { sr := r.PathPrefix("/config").Subrouter() sr.Handle("/get_all", ApiAppHandler(getConfig)).Methods("GET") - sr.Handle("/get/bypass_email", ApiAppHandler(getBypassEmail)).Methods("GET") } func getConfig(c *Context, w http.ResponseWriter, r *http.Request) { @@ -33,7 +32,3 @@ func getConfig(c *Context, w http.ResponseWriter, r *http.Request) { w.Write(bytes) } } - -func getBypassEmail(c *Context, w http.ResponseWriter, r *http.Request) { - w.Write([]byte(strconv.FormatBool(utils.Cfg.EmailSettings.ByPassEmail))) -} |