about summary refs log tree commit diff stats
path: root/config/routes.rb
diff options
context:
space:
mode:
Diffstat (limited to 'config/routes.rb')
-rw-r--r--config/routes.rb69
1 files changed, 64 insertions, 5 deletions
diff --git a/config/routes.rb b/config/routes.rb index ac5b84d..ad66501 100644 --- a/config/routes.rb +++ b/config/routes.rb
@@ -11,20 +11,79 @@ Rails.application.routes.draw do
11 resources :streams, except: [:show] do 11 resources :streams, except: [:show] do
12 resources :updates, except: [:index, :show] 12 resources :updates, except: [:index, :show]
13 end 13 end
14 end
15 14
16 mount Ckeditor::Engine => '/ckeditor' 15 resources :links, except: [:show]
16
17 resources :games, except: [:show]
18
19 resources :comments, only: [:index, :destroy] do
20 collection do
21 get 'pending'
22 post 'mass'
23 end
24
25 member do
26 post 'accept'
27 post 'reject'
28 post 'mark_spam'
29 end
30 end
31
32 resources :quotes do
33 collection do
34 get 'pending'
35 end
36
37 member do
38 post 'accept'
39 end
40 end
41 end
17 42
18 devise_for :users, controllers: { 43 devise_for :users, controllers: {
19 sessions: 'users/sessions', 44 sessions: 'users/sessions',
20 passwords: 'users/passwords' 45 passwords: 'users/passwords'
21 } 46 }
22 47
23 root "records#index" 48 root "blogs#summary"
49
50 resources :blogs, only: [:index, :show], param: :slug, path: "blog" do
51 member do
52 post 'upvote'
53 post 'downvote'
24 54
25 get 'says/:slug', to: 'blogs#show', as: :blog 55 resources :comments, only: [:create]
56 end
57 end
26 58
59 get 'thinks', to: 'streams#index', as: :streams
27 get 'thinks/:slug', to: 'streams#show', as: :stream 60 get 'thinks/:slug', to: 'streams#show', as: :stream
28 61
29 mount Pokeviewer::Engine => '/poke3' 62 get 'plays', to: 'games#index'
63
64 resources :tags, only: [:index, :show], param: :name do
65 collection do
66 get 'suggest'
67 end
68 end
69
70 resources :quotes do
71 collection do
72 get 'latest'
73 get 'top'
74 get 'random'
75 get 'tags'
76 get 'tags/:id', :action => "tag", :as => "tag"
77 get 'stats'
78 get 'search_form'
79 get 'search'
80 end
81
82 member do
83 post 'upvote'
84 post 'downvote'
85 end
86 end
87
88 resources :webmentions, only: [:create]
30end 89end