blob: df138f35d4ea3f97371b31449a12b8290d5ef0e9 [file] [log] [blame]
-module(dreyfus_config).
-export([data/0, get/1]).
data() ->
try
config:get("dreyfus_blacklist")
catch
error:badarg ->
% lazy workaround to address issue with epi invocation on startup
[]
end.
get(Key) ->
Handle = couch_epi:get_handle({dreyfus, black_list}),
couch_epi:get_value(Handle, dreyfus, Key).