// Loads/unloads wallets from the wallet directory func walletsReloadHandler(gateway *daemon.Gateway) http.HandlerFunc { return func(w http.ResponseWriter, r *http.Request) { err := gateway.ReloadWallets() if err != nil { Error500(w, err.(error).Error()) } } }