Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
21 lines (13 sloc) 404 Bytes
%% Feel free to use, reuse and abuse the code in this file.
-module(cowboy_examples_sup).
-behaviour(supervisor).
-export([start_link/0]). %% API.
-export([init/1]). %% supervisor.
-define(SUPERVISOR, ?MODULE).
%% API.
-spec start_link() -> {ok, Pid::pid()}.
start_link() ->
supervisor:start_link({local, ?SUPERVISOR}, ?MODULE, []).
%% supervisor.
init([]) ->
{ok, {{one_for_one, 10, 10}, []}}.
Something went wrong with that request. Please try again.