photomix/config/routes.rb

84 lines
1.6 KiB
Ruby
Raw Normal View History

2012-07-24 23:26:16 +02:00
Photomix::Application.routes.draw do
mount DeviseOmniauthEngine::Engine => "/", :as => "devise_omniauth"
devise_scope :user do
get '/login' => 'devise/sessions#new', :as => :login
get '/signup' => 'devise/registrations#new', :as => :signup
get '/logout' => 'devise/sessions#destroy', :as => :logout
resource :account, :controller => :users, :as => :user_root
end
devise_for :users, :controllers => {:omniauth_callbacks => "users/omniauth_callbacks"},
:path_names => {:sign_out => 'logout'}
resource :account, :controller => :users
2009-06-02 00:08:57 +02:00
2010-10-11 16:03:34 +02:00
resources :photos do
2012-07-26 22:26:23 +02:00
member do
post :rate
end
2010-10-11 16:03:34 +02:00
collection do
get :untouched
post :edit_multiple
put :update_multiple
get :upload
get :scan
end
2009-06-09 00:30:22 +02:00
end
2012-07-26 22:26:23 +02:00
2010-10-11 16:03:34 +02:00
resources :albums do
2012-07-26 22:26:23 +02:00
member do
post :rate
end
2010-10-11 16:03:34 +02:00
collection do
get :untouched
end
2012-07-26 22:26:23 +02:00
2010-10-11 16:03:34 +02:00
resources :tags do
resources :photos do
collection do
get :untouched
get :upload
get :edit_multiple
end
end
end
2012-07-26 22:26:23 +02:00
2010-10-11 16:03:34 +02:00
resources :photos do
collection do
get :untouched
get :upload
get :edit_multiple
end
end
end
2012-07-26 22:26:23 +02:00
2010-10-11 16:03:34 +02:00
resources :collections do
2012-07-26 22:26:23 +02:00
member do
post :rate
end
2010-10-11 16:03:34 +02:00
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
2012-07-24 23:26:16 +02:00
2010-10-11 16:03:34 +02:00
resources :tags, :shallow => true do
resources :photos
resources :albums
end
2012-07-24 23:26:16 +02:00
match '/locale' => "locale#set"
2012-07-29 00:33:03 +02:00
root :to => "home#index"
2009-05-22 16:14:07 +02:00
2010-12-20 19:38:32 +01:00
end