added some new routes to api.rb