anchor.diff:  	end.
   
   content_types_provided(Req, Ctx) ->
  -	?info("content types provided"),
  +	?info("content types provided, method: ~p", [element(1, cowboy_req:method(Req))]),
   	Types = [
   		{{<<"text">>, <<"html">>, []}, to_html},
   		{{<<"text">>, <<"json">>, []}, to_json}
  +	],
  +	{Types, Req, Ctx}.
  +
  +content_types_accepted(Req, Ctx) ->
  +	?info("content types accepted; got ~p", [element(1, cowboy_req:header(<<"content-type">>, Req))]),
  +	Types = [
  +		{{<<"application">>, <<"json">>, []}, from_json}
   	],
   	{Types, Req, Ctx}.
   
  
positive.code: 
  -export([get_routes/0]).
  -export([init/3, rest_init/2, allowed_methods/2, is_authorized/2,
  	content_types_provided/2, process_post/2]).
  
  -record(ctx, {
  	hostport,
  
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, []),
  