From afe81bf6968c48d3bc5bb0107bf67f00d3479b19 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20Chrz=C4=85szcz?= Date: Wed, 6 Apr 2022 13:44:21 +0200 Subject: [PATCH] Do not use gen_mod:get_module_opt --- src/mongoose_api.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mongoose_api.erl b/src/mongoose_api.erl index 634c21dad9..bb49357cca 100644 --- a/src/mongoose_api.erl +++ b/src/mongoose_api.erl @@ -58,7 +58,7 @@ %% ejabberd_cowboy callbacks %%-------------------------------------------------------------------- cowboy_router_paths(Base, Opts) -> - Handlers = gen_mod:get_opt(handlers, Opts, []), + Handlers = proplists:get_value(handlers, Opts, []), lists:flatmap(pa:bind(fun register_handler/2, Base), Handlers). register_handler(Base, Handler) ->