From 96813a5e508a54257ef03be613a704f1f71af53d Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 21 Oct 2023 00:25:50 -0400 Subject: Added quotes database --- config/initializers/assets.rb | 2 +- config/routes.rb | 14 ++++++++++++++ 2 files changed, 15 insertions(+), 1 deletion(-) (limited to 'config') 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') # application.js, application.css, and all non-JS/CSS in the app/assets # folder are already added. # Rails.application.config.assets.precompile += %w( admin.js admin.css ) -Rails.application.config.assets.precompile += %w( main userdata admin ) +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 end end + resources :quotes do + collection do + get 'latest' + get 'top' + get 'tags' + get 'tags/:id', :action => "tag", :as => "tag" + end + + member do + post 'upvote' + post 'downvote' + end + end + mount Pokeviewer::Engine => '/poke3' mount Lingo::Engine => '/lingo' end -- cgit 1.4.1