From bb9a2e975e4657d2f03d93b4d9595160e8190566 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Sat, 7 Sep 2013 16:23:13 +0200 Subject: Rename the basic_auth example to rest_basic_auth --- .../rest_basic_auth/src/rest_basic_auth_sup.erl | 23 ++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 examples/rest_basic_auth/src/rest_basic_auth_sup.erl (limited to 'examples/rest_basic_auth/src/rest_basic_auth_sup.erl') 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}}. -- cgit v1.2.3