Commits

Kevin Smith  committed 4848159

Fixed borked wmtrace_resource:add_dispatch_rule/2

  • Participants
  • Parent commits d87c46e

Comments (0)

Files changed (1)

File src/wmtrace_resource.erl

 add_dispatch_rule(BasePath, TracePath) when is_list(BasePath),
                                             is_list(TracePath) ->
     Parts = string:tokens(BasePath, "/"),
-    webmachine_router:add_pathspec({Parts ++ ['*'], ?MODULE, [{trace_dir, TracePath}]}).
+    webmachine_router:add_route({Parts ++ ['*'], ?MODULE, [{trace_dir, TracePath}]}).
 
 %% @spec remove_dispatch_rules() -> ok
 %% @doc Remove all dispatch rules pointing to wmtrace_resource.