Removed isEmailEnabledSynchronous and switched the email disabled warnings to use ConfigStore

Этот коммит содержится в:
hmhealey
2015-08-13 13:23:56 -04:00
родитель ca919538cc
Коммит 8fc4456213
4 изменённых файлов: 4 добавлений и 28 удалений

Просмотреть файл

@@ -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)))
}