Skip to content

Commit

Permalink
fix routes for rails 5
Browse files Browse the repository at this point in the history
  • Loading branch information
mtparet committed Oct 17, 2016
1 parent afa2da5 commit bbc2617
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions spec/dummy/config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,20 @@
scope '/api' do
resources :users do
collection do
post :create_route
post :create_route => 'users#create_route'
end
end
resources :concerns, :only => [:index, :show]
namespace :files do
get '/*file_path', to: :download, format: false
get '/*file_path' => 'files#download', format: false
end
resources :twitter_example do
collection do
get :lookup
get :lookup => 'twitter_example#lookup'
get 'profile_image/:screen_name' => 'twitter_example#profile_image'
get :search
get :search
get :contributors
get :search => 'twitter_example#search'
get :search => 'twitter_example#search'
get :contributors => 'twitter_example#contributors'
end
end
end
Expand Down

0 comments on commit bbc2617

Please sign in to comment.