Skip to content

Commit

Permalink
Modified routes for non-resourceful routes
Browse files Browse the repository at this point in the history
  • Loading branch information
EC2 Default User committed Aug 1, 2017
1 parent 9a0c938 commit c65a8ce
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/routes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
# For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html
resources :urlinfos do
end
get 'urlinfo/1' => 'urlinfos#index'
get 'urlinfo/1/:domain_name/:query_string' => 'urlinfos#show'
post 'urlinfo/1/:domain_name/:query_string' => 'urlinfos#post'
delete 'urlinfo/1/:domain_name/:query_string' => 'urlinfos#delete'
end

0 comments on commit c65a8ce

Please sign in to comment.