about summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/initializers/assets.rb2
-rw-r--r--config/routes.rb14
2 files changed, 15 insertions, 1 deletions
diff --git a/config/initializers/assets.rb b/config/initializers/assets.rb index e80f11f..ac7deec 100644 --- a/config/initializers/assets.rb +++ b/config/initializers/assets.rb
@@ -12,4 +12,4 @@ Rails.application.config.assets.paths << Rails.root.join('node_modules')
12# application.js, application.css, and all non-JS/CSS in the app/assets 12# application.js, application.css, and all non-JS/CSS in the app/assets
13# folder are already added. 13# folder are already added.
14# Rails.application.config.assets.precompile += %w( admin.js admin.css ) 14# Rails.application.config.assets.precompile += %w( admin.js admin.css )
15Rails.application.config.assets.precompile += %w( main userdata admin ) 15Rails.application.config.assets.precompile += %w( main userdata admin quotes )
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