Skip to content
This repository
Browse code

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

Fix riak_core_wm_urlmap
  • Loading branch information...
commit e85df1cb0f0d77b508f42c0a961e966e26cd3239 2 parents 427a2cf + 23bd32c
Sean Cribbs seancribbs authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  src/riak_core_wm_urlmap.erl
2  src/riak_core_wm_urlmap.erl
@@ -75,7 +75,7 @@ to_json(RD, Services) ->
75 75 {mochijson:encode({struct, Services}), RD, Services}.
76 76
77 77 service_list() ->
78   - {ok, Dispatch} = application:get_env(webmachine, dispatch_list),
  78 + Dispatch = webmachine_router:get_routes(),
79 79 lists:usort(
80 80 [{atom_to_list(Resource), "/"++UriBase}
81 81 || {[UriBase|_], Resource, _} <- Dispatch]).

0 comments on commit e85df1c

Please sign in to comment.
Something went wrong with that request. Please try again.