Modifies the app views file to return JSON data to the user using a REST api.