about summary refs log tree commit diff stats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb14
1 files changed, 14 insertions, 0 deletions
diff --git a/config/routes.rb b/config/routes.rb index 6363590..33cc5f3 100644 --- a/config/routes.rb +++ b/config/routes.rb
@@ -55,6 +55,20 @@ Rails.application.routes.draw do
55 end 55 end
56 end 56 end
57 57
58 resources :quotes do
59 collection do
60 get 'latest'
61 get 'top'
62 get 'tags'
63 get 'tags/:id', :action => "tag", :as => "tag"
64 end
65
66 member do
67 post 'upvote'
68 post 'downvote'
69 end
70 end
71
58 mount Pokeviewer::Engine => '/poke3' 72 mount Pokeviewer::Engine => '/poke3'
59 mount Lingo::Engine => '/lingo' 73 mount Lingo::Engine => '/lingo'
60end 74end