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.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: {