about summary refs log tree commit diff stats
path: root/config
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-10-13 13:13:28 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-10-13 13:13:28 -0400
commitd365294db7edd79f01b51ac30413707a556f84bb (patch)
tree817396db46ac064962362970bea8e005a9cf2660 /config
parentdd9b9ac1c2f032e02757e7e4fa4aa588234933d4 (diff)
downloadthoughts-d365294db7edd79f01b51ac30413707a556f84bb.tar.gz
thoughts-d365294db7edd79f01b51ac30413707a556f84bb.tar.bz2
thoughts-d365294db7edd79f01b51ac30413707a556f84bb.zip
Added pending comment page to admin panel
Diffstat (limited to 'config')
-rw-r--r--config/routes.rb11
1 files changed, 10 insertions, 1 deletions
diff --git a/config/routes.rb b/config/routes.rb index 5aa1558..4b68dc3 100644 --- a/config/routes.rb +++ b/config/routes.rb
@@ -16,7 +16,16 @@ Rails.application.routes.draw do
16 16
17 resources :games, except: [:show] 17 resources :games, except: [:show]
18 18
19 resources :comments, only: [:index, :destroy] 19 resources :comments, only: [:index, :destroy] do
20 collection do
21 get 'pending'
22 end
23
24 member do
25 post 'accept'
26 post 'reject'
27 end
28 end
20 end 29 end
21 30
22 devise_for :users, controllers: { 31 devise_for :users, controllers: {