about summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb3
1 files changed, 3 insertions, 0 deletions
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
38 38
39 resources :blogs, only: [:index, :show], param: :slug, path: "blog" do 39 resources :blogs, only: [:index, :show], param: :slug, path: "blog" do
40 member do 40 member do
41 post 'upvote'
42 post 'downvote'
43
41 resources :comments, only: [:create] 44 resources :comments, only: [:create]
42 end 45 end
43 end 46 end