Skip to content

Commit

Permalink
Do not use gen_mod:get_module_opt
Browse files Browse the repository at this point in the history
  • Loading branch information
chrzaszcz committed Apr 6, 2022
1 parent c356eab commit afe81bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mongoose_api.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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) ->
Expand Down

0 comments on commit afe81bf

Please sign in to comment.