Removed isEmailEnabledSynchronous and switched the email disabled warnings to use ConfigStore
Этот коммит содержится в:
@@ -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)))
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user