Permalink
Browse files

start webmachine_router gen_server under webmachine_sup, so apps can …

…add routes at startup
  • Loading branch information...
1 parent 9df5a19 commit 052c7304e705cb52f44ef697d1b89dbafa8250bb Bryan Fink committed Apr 7, 2010
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/webmachine_sup.erl
View
@@ -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}}.

0 comments on commit 052c730

Please sign in to comment.