basic_auth_sup.erl 388 B

1234567891011121314151617181920212223
  1. %% Feel free to use, reuse and abuse the code in this file.
  2. %% @private
  3. -module(basic_auth_sup).
  4. -behaviour(supervisor).
  5. %% API.
  6. -export([start_link/0]).
  7. %% supervisor.
  8. -export([init/1]).
  9. %% API.
  10. -spec start_link() -> {ok, pid()}.
  11. start_link() ->
  12. supervisor:start_link({local, ?MODULE}, ?MODULE, []).
  13. %% supervisor.
  14. init([]) ->
  15. Procs = [],
  16. {ok, {{one_for_one, 10, 10}, Procs}}.