photomix/config/routes.rb

59 lines
1.2 KiB
Ruby
Raw Normal View History

2011-04-11 11:13:10 +02:00
Balder::Application.routes.draw do
resource :account, :controller => :users
2010-10-11 16:03:34 +02:00
match "login", :to => "user_sessions#new", :as => :login
match "authenticate", :to => "user_sessions#create", :as => :authenticate
match "logout", :to => "user_sessions#destroy", :as => :logout
2009-06-02 00:08:57 +02:00
2010-10-11 16:03:34 +02:00
resources :photos do
collection do
get :untouched
post :edit_multiple
put :update_multiple
get :upload
get :scan
end
2009-06-09 00:30:22 +02:00
end
2010-10-11 16:03:34 +02:00
resources :albums do
collection do
get :untouched
end
resources :tags do
resources :photos do
collection do
get :untouched
get :upload
get :edit_multiple
end
end
end
resources :photos do
collection do
get :untouched
get :upload
get :edit_multiple
end
end
end
resources :collections do
resources :albums do
resources :photos do
collection do
get :untouched
get :upload
get :edit_multiple
end
end
2009-06-11 13:05:09 +02:00
end
end
2010-10-11 16:03:34 +02:00
resources :tags, :shallow => true do
resources :photos
resources :albums
end
2009-05-22 16:14:07 +02:00
2010-12-20 19:38:32 +01:00
resources :users, :controller => "admin/users"
2009-06-02 00:08:57 +02:00
2010-10-11 16:03:34 +02:00
root :to => "collections#index"
2009-05-22 16:14:07 +02:00
2010-12-20 19:38:32 +01:00
end