diff options
author | Loïc Hoguin <[email protected]> | 2013-09-07 16:23:13 +0200 |
---|---|---|
committer | Loïc Hoguin <[email protected]> | 2013-09-07 16:23:13 +0200 |
commit | bb9a2e975e4657d2f03d93b4d9595160e8190566 (patch) | |
tree | 75b6f8ae8649dd00e572fa1413970a7ce9cd3574 /examples/rest_basic_auth/src/rest_basic_auth_sup.erl | |
parent | 51ce122858c4dc09f4440269a412a91afb19ebe7 (diff) | |
download | cowboy-bb9a2e975e4657d2f03d93b4d9595160e8190566.tar.gz cowboy-bb9a2e975e4657d2f03d93b4d9595160e8190566.tar.bz2 cowboy-bb9a2e975e4657d2f03d93b4d9595160e8190566.zip |
Rename the basic_auth example to rest_basic_auth
Diffstat (limited to 'examples/rest_basic_auth/src/rest_basic_auth_sup.erl')
-rw-r--r-- | examples/rest_basic_auth/src/rest_basic_auth_sup.erl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/examples/rest_basic_auth/src/rest_basic_auth_sup.erl b/examples/rest_basic_auth/src/rest_basic_auth_sup.erl new file mode 100644 index 0000000..f6ce67c --- /dev/null +++ b/examples/rest_basic_auth/src/rest_basic_auth_sup.erl @@ -0,0 +1,23 @@ +%% Feel free to use, reuse and abuse the code in this file. + +%% @private +-module(rest_basic_auth_sup). +-behaviour(supervisor). + +%% API. +-export([start_link/0]). + +%% supervisor. +-export([init/1]). + +%% API. + +-spec start_link() -> {ok, pid()}. +start_link() -> + supervisor:start_link({local, ?MODULE}, ?MODULE, []). + +%% supervisor. + +init([]) -> + Procs = [], + {ok, {{one_for_one, 10, 10}, Procs}}. |