diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-21 00:25:50 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-10-21 00:25:50 -0400 |
commit | 96813a5e508a54257ef03be613a704f1f71af53d (patch) | |
tree | a50f5c8dc27304a3ca27366b6268a72804727e16 /config | |
parent | 2a7a19c93ee0e0d77e4e388d43f36a721c7ab715 (diff) | |
download | thoughts-96813a5e508a54257ef03be613a704f1f71af53d.tar.gz thoughts-96813a5e508a54257ef03be613a704f1f71af53d.tar.bz2 thoughts-96813a5e508a54257ef03be613a704f1f71af53d.zip |
Added quotes database
Diffstat (limited to 'config')
-rw-r--r-- | config/initializers/assets.rb | 2 | ||||
-rw-r--r-- | config/routes.rb | 14 |
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 ) |
15 | Rails.application.config.assets.precompile += %w( main userdata admin ) | 15 | Rails.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' |
60 | end | 74 | end |