diff options
author | 2011-05-18 17:19:38 +0200 | |
---|---|---|
committer | 2011-06-01 15:21:14 +0200 | |
commit | 4b874a907e16dcfb61cc82a69f9c3891bff1bfa8 (patch) | |
tree | d364ca3c0983cfd383c550792df6529443ed8bbe /site/config | |
parent | MeetBot plugin from Debian (diff) | |
download | council-webapp-4b874a907e16dcfb61cc82a69f9c3891bff1bfa8.tar.gz council-webapp-4b874a907e16dcfb61cc82a69f9c3891bff1bfa8.tar.bz2 council-webapp-4b874a907e16dcfb61cc82a69f9c3891bff1bfa8.zip |
Application provides data for IRC bot
Diffstat (limited to 'site/config')
-rw-r--r-- | site/config/hobo_routes.rb | 10 | ||||
-rw-r--r-- | site/config/routes.rb | 3 |
2 files changed, 13 insertions, 0 deletions
diff --git a/site/config/hobo_routes.rb b/site/config/hobo_routes.rb index 11fb9b0..ad63a15 100644 --- a/site/config/hobo_routes.rb +++ b/site/config/hobo_routes.rb @@ -53,4 +53,14 @@ Council::Application.routes.draw do put 'agenda_items/:id(.:format)' => 'agenda_items#update', :as => 'update_agenda_item', :constraints => { :id => %r([^/.?]+) } delete 'agenda_items/:id(.:format)' => 'agenda_items#destroy', :as => 'destroy_agenda_item', :constraints => { :id => %r([^/.?]+) } + + # Resource routes for controller "voting_options" + get 'voting_options(.:format)' => 'voting_options#index', :as => 'voting_options' + get 'voting_options/new(.:format)', :as => 'new_voting_option' + get 'voting_options/:id/edit(.:format)' => 'voting_options#edit', :as => 'edit_voting_option' + get 'voting_options/:id(.:format)' => 'voting_options#show', :as => 'voting_option', :constraints => { :id => %r([^/.?]+) } + post 'voting_options(.:format)' => 'voting_options#create', :as => 'create_voting_option' + put 'voting_options/:id(.:format)' => 'voting_options#update', :as => 'update_voting_option', :constraints => { :id => %r([^/.?]+) } + delete 'voting_options/:id(.:format)' => 'voting_options#destroy', :as => 'destroy_voting_option', :constraints => { :id => %r([^/.?]+) } + end diff --git a/site/config/routes.rb b/site/config/routes.rb index e36d680..e3337bb 100644 --- a/site/config/routes.rb +++ b/site/config/routes.rb @@ -3,6 +3,9 @@ Council::Application.routes.draw do match 'search' => 'front#search', :as => 'site_search' + match 'users/voters' => 'users#voters', :as => 'voters' + match 'agendas/current_items' => 'agendas#current_items', :as => 'current_items' + # The priority is based upon order of creation: # first created -> highest priority. |