about summary refs log tree commit diff stats
path: root/config/routes.rb
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-21 00:25:50 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-21 00:25:50 -0400
commit96813a5e508a54257ef03be613a704f1f71af53d (patch)
treea50f5c8dc27304a3ca27366b6268a72804727e16 /config/routes.rb
parent2a7a19c93ee0e0d77e4e388d43f36a721c7ab715 (diff)
downloadthoughts-96813a5e508a54257ef03be613a704f1f71af53d.tar.gz
thoughts-96813a5e508a54257ef03be613a704f1f71af53d.tar.bz2
thoughts-96813a5e508a54257ef03be613a704f1f71af53d.zip
Added quotes database
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