update the controller to render the correct JSON data for the two URL’s