mailr/config/routes.rb

123 lines
3.8 KiB
Ruby
Raw Normal View History

Mailr::Application.routes.draw do
2011-09-03 13:07:40 +02:00
#match "prefs/index" => "prefs#index", :as => :prefs
post "prefs/update_look"
post "prefs/update_identity"
post "prefs/update_servers"
match "prefs/look" => "prefs#look", :as => :prefs_look
match "prefs/identity" => "prefs#identity", :as => :prefs_identity
match "prefs/servers" => "prefs#servers", :as => :prefs_servers
2011-07-29 20:05:47 +02:00
2011-08-16 20:05:58 +02:00
resources :contacts
post "contacts/ops"
2011-07-29 20:05:47 +02:00
2011-08-16 20:05:58 +02:00
#resources :folders
2011-08-24 19:20:13 +02:00
match "folders/index" => 'folders#index', :as => :folders
2011-07-29 20:05:47 +02:00
post "folders/create"
post "folders/delete"
2011-09-03 13:07:40 +02:00
post "folders/system"
2011-07-31 22:45:29 +02:00
post "folders/show_hide"
2011-09-03 13:07:40 +02:00
post "folders/refresh"
2011-08-24 19:20:13 +02:00
get "folders/refresh_status"
2011-07-31 22:45:29 +02:00
post "folders/refresh"
2011-08-24 19:20:13 +02:00
match "folders/select/:id" => 'folders#select', :as => :folders_select
get "folders/emptybin"
2011-07-29 20:05:47 +02:00
2011-07-24 22:22:13 +02:00
get "internal/error"
2011-07-27 20:34:30 +02:00
get "internal/imaperror"
2011-07-29 20:05:47 +02:00
get "internal/loginfailure"
2011-08-24 19:20:13 +02:00
get "internal/onlycanlogins"
2011-07-24 22:22:13 +02:00
2011-09-05 19:08:22 +02:00
match "messages_ops/single" => 'messages_ops#single'
match "messages_ops/multi" => 'messages_ops#multi'
match "messages_ops/sendout_or_save" => 'messages_ops#sendout_or_save' ,:as =>:sendout_or_save
2011-07-22 22:57:36 +02:00
root :to => "messages#index"
2011-08-24 19:20:13 +02:00
#get "messages/refresh_status"
#get "messages/emptybin"
#match "messages/select/:id" => 'messages#select', :as => :messages_select
2011-07-22 22:57:36 +02:00
get "messages/index"
2011-08-24 19:20:13 +02:00
#match 'messages/folder/:id' => 'messages#folder', :as => :messages_folder
2011-09-05 19:08:22 +02:00
#post "messages/ops"
#post "messages/msgops"
2011-08-24 19:20:13 +02:00
match "messages/compose" => 'messages#compose'
2011-09-05 19:08:22 +02:00
#match "messages/edit/:id" => 'messages#edit' ,:as => :messages_edit
#match "messages/reply/:id" => 'messages#reply'
2011-08-02 23:12:17 +02:00
match "messages/show/:id" => 'messages#show'
2011-09-05 19:08:22 +02:00
#match "messages/body/:id/:idx" => 'messages#body' , :as => :messages_part_body
2011-09-03 13:07:40 +02:00
match "messages/html_body/:id" => 'messages#html_body' , :as => :messages_html_body
2011-08-24 19:20:13 +02:00
match "messages/attachment/:id/:idx" => 'messages#attachment', :as => :messages_attachment_download
2011-07-27 20:34:30 +02:00
2011-07-22 21:58:59 +02:00
get "user/logout"
post "user/authenticate"
2011-07-23 21:55:26 +02:00
post "user/create"
2011-07-22 22:57:36 +02:00
get "user/login"
get "user/setup"
2011-07-27 20:34:30 +02:00
match 'user/setup/:id' => 'user#setup'
2011-07-22 22:57:36 +02:00
get "user/unknown"
2011-06-24 23:48:08 +02:00
2011-07-22 22:57:36 +02:00
themes_for_rails
2011-06-24 23:48:08 +02:00
2011-09-05 19:08:22 +02:00
match '*a', :to => 'internal#not_found'
2011-08-02 23:12:17 +02:00
2011-06-24 23:48:08 +02:00
# The priority is based upon order of creation:
# first created -> highest priority.
# Sample of regular route:
# match 'products/:id' => 'catalog#view'
# Keep in mind you can assign values other than :controller and :action
# Sample of named route:
# match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
# This route can be invoked with purchase_url(:id => product.id)
# Sample resource route (maps HTTP verbs to controller actions automatically):
# resources :products
# Sample resource route with options:
# resources :products do
# member do
# get 'short'
# post 'toggle'
# end
#
# collection do
# get 'sold'
# end
# end
# Sample resource route with sub-resources:
# resources :products do
# resources :comments, :sales
# resource :seller
# end
# Sample resource route with more complex sub-resources
# resources :products do
# resources :comments
# resources :sales do
# get 'recent', :on => :collection
# end
# end
# Sample resource route within a namespace:
# namespace :admin do
# # Directs /admin/products/* to Admin::ProductsController
# # (app/controllers/admin/products_controller.rb)
# resources :products
# end
# You can have the root of your site routed with "root"
# just remember to delete public/index.html.
2011-07-22 22:57:36 +02:00
2011-06-24 23:48:08 +02:00
# See how all your routes lay out with "rake routes"
# This is a legacy wild controller route that's not recommended for RESTful applications.
# Note: This route will make all actions in every controller accessible via GET requests.
# match ':controller(/:action(/:id(.:format)))'
2011-07-21 20:20:15 +02:00
end