Changesets can be listed by changeset number.
The Git repository is here.
- Revision:
- 471
- Log:
Add 'quick and dirty' blacklist mechanism
- Author:
- rool
- Date:
- Sat Jan 26 09:02:22 +0000 2019
- Size:
- 1772 Bytes
1 | ActionController::Routing::Routes.draw do |map| |
2 | map.home '/', :controller => 'forums', :action => 'index' |
3 | |
4 | map.resources :sessions |
5 | |
6 | map.resources :users, :member => { :admin => :post } do |user| |
7 | user.resources :moderators |
8 | end |
9 | |
10 | map.resources :forums do |forum| |
11 | forum.resources :topics do |topic| |
12 | topic.resources :posts, :monitorships |
13 | end |
14 | end |
15 | |
16 | map.resource :blacklist |
17 | |
18 | # Fake DELETE requests to the monitorships controller result in a |
19 | # routing error with default Beast routes. |
20 | |
21 | map.connect '/forums/:forum_id/topics/:topic_id/monitorships/destroy', :controller => 'monitorships', :action => 'destroy' |
22 | |
23 | map.resources :posts, :name_prefix => 'all_', :collection => { :search => :get } |
24 | |
25 | %w(user forum).each do |attr| |
26 | map.resources :posts, :name_prefix => "#{attr}_", :path_prefix => "/#{attr.pluralize}/:#{attr}_id" |
27 | end |
28 | |
29 | map.signup '/signup', :controller => 'users', :action => 'new' |
30 | map.settings '/settings', :controller => 'users', :action => 'edit' |
31 | map.activate '/activate/:key', :controller => 'users', :action => 'activate' |
32 | map.login '/login', :controller => 'sessions', :action => 'new' |
33 | map.logout '/logout', :controller => 'sessions', :action => 'destroy' |
34 | map.with_options :controller => 'posts', :action => 'monitored' do |map| |
35 | map.formatted_monitored_posts '/users/:user_id/monitored.:format' |
36 | map.monitored_posts '/users/:user_id/monitored' |
37 | end |
38 | |
39 | map.exceptions '/logged_exceptions/:action/:id', :controller => 'logged_exceptions', :action => 'index', :id => nil |
40 | |
41 | # Old-fashioned route for backwards compatibility with RForum's |
42 | # global feed location |
43 | # |
44 | map.exceptions '/feed/global', :controller => 'posts', :action => 'index_rss' |
45 | end |