Current section
Files
Jump to
Current section
Files
src/bank.erl
-module(bank).
-compile(export_all).
-behaviour(application).
-behaviour(supervisor).
-export([start/2, stop/1, init/1]).
stop(_) -> ok.
init([]) -> {ok, { {one_for_one, 5, 10}, []} }.
start(_,_) -> cowboy:start_tls(http, n2o_cowboy:env(bank), #{env => #{dispatch => n2o_cowboy2:points()} }),
supervisor:start_link({local, ?MODULE}, ?MODULE, []).