anchor.diff:      handle_request(Path, Req).
   
   handle_request("/api/" ++ Path, Req) when length(Path) > 0 ->
  -    api(Path, Req);
  +    api(list_to_atom(Path), Req);
   
   handle_request("/" ++ Rest, Req) ->
       mochiweb_request:serve_file(Rest, docroot(), Req).
  
positive.code: -export([handle_request/1]).
  
  -define(SEPARTOR, $\/).
  
  handle_request(Req) ->
      Path = Req:get(path),
  
negative.code: 
  %%topic api
  api(topic, Req) ->
      F = fun() ->
          Q = qlc:q([E || E <- mnesia:table(topic)]),
  	qlc:e(Q) 
          end,
      {atomic, TopicLists} =  mnesia:transaction(F),
      Bodys = [[{mqtt_topic,  Tab},
  	     {topic, Topic}, 
  	     {node, Node} 
  	     ] || {Tab, Topic, Node} <- TopicLists],
   
      Jsons = [mochijson2:encode(Body)|| Body<- Bodys],
      Topics = [iolist_to_binary(Json)|| Json<- Jsons],
      Req:respond({200, [], Topics}).
  
  
  