From 2a7a19c93ee0e0d77e4e388d43f36a721c7ab715 Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Fri, 20 Oct 2023 21:27:06 -0400 Subject: Added post voting --- config/routes.rb | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config/routes.rb') diff --git a/config/routes.rb b/config/routes.rb index 416e939..6363590 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -38,6 +38,9 @@ Rails.application.routes.draw do resources :blogs, only: [:index, :show], param: :slug, path: "blog" do member do + post 'upvote' + post 'downvote' + resources :comments, only: [:create] end end -- cgit 1.4.1