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/routes.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'config/routes.rb') 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