Pettanr::Application.routes.draw do
-
- devise_for :users
+ devise_for :users, controllers: {sessions: 'user_sessions', omniauth_callbacks: "omniauth_callbacks"}
devise_for :admins
devise_for :demand_users
collection do
get :root
get :index
+ get :watch
get :show
- get :count
post :create
end
member do
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_author
get :by_panel
- get :count_by_author
- get :count_by_panel
get :play
get :edit
put :update
delete :destroy
- get :browse
end
end
resources :scroll_panels do
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_panel
get :by_scroll
get :by_author
- get :count_by_panel
- get :count_by_scroll
- get :count_by_author
+ get :play
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_author
get :by_story
- get :count_by_author
- get :count_by_story
get :play
get :edit
put :update
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_comic
get :by_story
get :by_author
- get :count_by_comic
- get :count_by_story
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_comic
get :by_sheet
get :by_author
- get :count_by_comic
- get :count_by_sheet
- get :count_by_author
get :play
get :edit
put :update
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_story
get :by_sheet
get :by_author
- get :count_by_story
- get :count_by_sheet
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_story
get :by_panel
get :by_author
- get :count_by_story
- get :count_by_panel
- get :count_by_author
get :play
get :edit
put :update
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_sheet
get :by_panel
get :by_author
- get :count_by_sheet
- get :count_by_panel
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_sheet
get :by_author
get :by_speech_balloon_template
- get :count_by_scroll
- get :count_by_sheet
- get :count_by_author
- get :count_by_speech_balloon_template
- get :catch
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_panel
get :by_author
- get :count_by_panel
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_panel
get :by_author
get :by_speech_balloon_template
- get :count_by_panel
- get :count_by_author
- get :count_by_speech_balloon_template
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
end
member do
get :by_author
- get :count_by_author
+ get :by_speech_balloon
+ get :by_speech_balloon_template
+ get :by_system_picture
get :edit
put :update
end
collection do
get :index
get :show
- get :count
end
member do
get :by_author
- get :count_by_author
+ get :by_speech_balloon
+ get :by_author
+ get :by_speech_balloon_template
+ get :by_writing_format
get :edit
put :update
end
collection do
get :index
get :show
- get :count
end
member do
get :by_panel
get :by_author
- get :count_by_panel
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
end
member do
get :by_panel
get :by_author
- get :count_by_panel
- get :count_by_author
get :edit
put :update
delete :destroy
collection do
get :index
get :show
- get :count
post :create
end
member do
collection do
get :index
get :show
- get :count
get :credit
get :search
end
member do
get :by_artist
- get :count_by_artist
get :credit
end
end
collection do
get :index
get :show
- get :count
get :new
post :create
- get :count
end
member do
+ get :by_original_picture
get :by_license_group
get :by_license
get :by_artist
- get :count_by_license_group
- get :count_by_license
- get :count_by_artist
delete :destroy
get :credit
end
end
+ resources :resource_picture_pictures do
+ collection do
+ get :index
+ get :show
+ end
+ member do
+ get :by_original_picture
+ get :by_resource_picture
+ get :by_picture
+ end
+ end
resources :speech_balloon_templates do
collection do
get :index
get :show
- get :count
post :create
end
member do
get :by_panel
get :by_system_picture
- get :count_by_system_picture
- get :count_by_panel
put :update
delete :destroy
end
collection do
get :index
get :show
- get :count
post :create
end
member do
get :speeches
get :by_system_picture
get :speeches_count
- get :count_by_system_picture
put :update
delete :destroy
end
collection do
get :index
get :show
- get :count
post :create
end
member do
- get :resource_pictures
- get :resource_pictures_count
- get :licenses
- get :licenses_count
+ get :by_resource_picture
put :update
delete :destroy
end
collection do
get :index
get :show
- get :count
get :search
post :create
end
get :by_license_group
get :by_system_picture
get :resource_pictures_count
- get :count_by_license_group
- get :count_by_system_picture
put :update
delete :destroy
end
collection do
get :index
get :show
- get :count
post :create
end
member do
collection do
get :index
get :show
- get :count
post :create
end
member do
collection do
get :index
get :show
- get :count
end
member do
#get :balloons
get :speech_balloon_templates
get :licenses
- get :speech_balloon_templates_count
- get :licenses_count
delete :destroy
end
end
# match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
# match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
#match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
- match 'top/(:action)', :controller => 'top'
- match 'home/(:action)', :controller => 'home'
- match 'system/(:action)', :controller => 'system'
+ match 'top/(:action)', :controller => 'top', via: [:get]
+ match 'home/(:action)', :controller => 'home', via: [:get]
+ match 'system/(:action)', :controller => 'system', via: [:get, :post]
#match 'authors/(:action(/:id))', :controller => 'authors'
# Sample of named route:
# 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)))'
+ match ':controller(/:action(/:id(.:format)))', via: [:get, :post]
end