Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

start webmachine_router gen_server under webmachine_sup, so apps can …

…add routes at startup
  • Loading branch information...
commit 052c7304e705cb52f44ef697d1b89dbafa8250bb 1 parent 9df5a19
@beerriot beerriot authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/webmachine_sup.erl
View
5 src/webmachine_sup.erl
@@ -72,5 +72,8 @@ upgrade() ->
%% @spec init([]) -> SupervisorTree
%% @doc supervisor callback.
init([]) ->
- Processes = [],
+ Router = {webmachine_router,
+ {webmachine_router, start_link, []},
+ permanent, 5000, worker, [webmachine_router]},
+ Processes = [Router],
{ok, {{one_for_one, 9, 10}, Processes}}.
Please sign in to comment.
Something went wrong with that request. Please try again.