Change controller method to extend rails-api instead