before model place
config/routes.rb
changed to api