anchor.diff:  
   -export([get_routes/0]).
   -export([init/3, rest_init/2, allowed_methods/2, is_authorized/2,
  -	content_types_provided/2, process_post/2]).
  +	content_types_provided/2, content_types_accepted/2, from_json/2]).
  +%process_post/2]).
   
   -record(ctx, {
   	hostport,
  
positive.code: 	end.
  
  content_types_provided(Req, Ctx) ->
  	?info("content types provided"),
  	Types = [
  		{{<<"text">>, <<"html">>, []}, to_html},
  		{{<<"text">>, <<"json">>, []}, to_json}
  	],
  	{Types, Req, Ctx}.
  
  
negative.code: previously_existed(Req, Ctx) ->
  	{true, Req, Ctx}.
  
  from_json(Req, #ctx{session = Session, hostport = {Host, Port}, action = logout} = Ctx) ->
  	?info("processing logout"),
  	Req1 = rpgb_session:destroy(Req),
  	{true, Req1, Ctx};
  
  from_json(Req, #ctx{session = Session, hostport = {Host, Port}, action = login} = Ctx) ->
  	?info("processing login"),
  	SessionId = rpgb_session:get_id(Session),
  	BaseURL = rpgb:get_url(Req, []),
  