aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-05-30 20:08:21 +0200
committerJoachim Filip Ignacy Bartosik <jbartosik@gmail.com>2011-06-03 19:27:10 +0200
commit7d5a200601a723b8a6acef4f49ea02bd2bba9935 (patch)
tree9c12dd3e3cf0a7d108b7eb3755c26260a80a7e5c /site/config
parentApplication receives data from IRC bot (diff)
downloadcouncil-webapp-7d5a200601a723b8a6acef4f49ea02bd2bba9935.tar.gz
council-webapp-7d5a200601a723b8a6acef4f49ea02bd2bba9935.tar.bz2
council-webapp-7d5a200601a723b8a6acef4f49ea02bd2bba9935.zip
Proxy model
Diffstat (limited to 'site/config')
-rw-r--r--site/config/hobo_routes.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/site/config/hobo_routes.rb b/site/config/hobo_routes.rb
index ad63a15..a426e53 100644
--- a/site/config/hobo_routes.rb
+++ b/site/config/hobo_routes.rb
@@ -5,6 +5,16 @@
Council::Application.routes.draw do
+ # Resource routes for controller "proxies"
+ get 'proxies(.:format)' => 'proxies#index', :as => 'proxies'
+ get 'proxies/new(.:format)', :as => 'new_proxy'
+ get 'proxies/:id/edit(.:format)' => 'proxies#edit', :as => 'edit_proxy'
+ get 'proxies/:id(.:format)' => 'proxies#show', :as => 'proxy', :constraints => { :id => %r([^/.?]+) }
+ post 'proxies(.:format)' => 'proxies#create', :as => 'create_proxy'
+ put 'proxies/:id(.:format)' => 'proxies#update', :as => 'update_proxy', :constraints => { :id => %r([^/.?]+) }
+ delete 'proxies/:id(.:format)' => 'proxies#destroy', :as => 'destroy_proxy', :constraints => { :id => %r([^/.?]+) }
+
+
# Lifecycle routes for controller "users"
post 'users/signup(.:format)' => 'users#do_signup', :as => 'do_user_signup'
get 'users/signup(.:format)' => 'users#signup', :as => 'user_signup'