Permalink
Browse files

Merge pull request #268 from basho/sdc-fix-urlmap

Fix riak_core_wm_urlmap
  • Loading branch information...
2 parents 427a2cf + 23bd32c commit e85df1cb0f0d77b508f42c0a961e966e26cd3239 @seancribbs seancribbs committed Jan 23, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/riak_core_wm_urlmap.erl
View
2 src/riak_core_wm_urlmap.erl
@@ -75,7 +75,7 @@ to_json(RD, Services) ->
{mochijson:encode({struct, Services}), RD, Services}.
service_list() ->
- {ok, Dispatch} = application:get_env(webmachine, dispatch_list),
+ Dispatch = webmachine_router:get_routes(),
lists:usort(
[{atom_to_list(Resource), "/"++UriBase}
|| {[UriBase|_], Resource, _} <- Dispatch]).

0 comments on commit e85df1c

Please sign in to comment.