adding a handler for posting data to the api
angular posts to a "non trailing slash" api by default
updating the template