1 Pettanr::Application.routes.draw do
3 devise_for :users, controllers: {sessions: 'user_sessions'}
5 devise_for :demand_users
7 Manifest.manifest.system_resources.templates.each do |template_name, template|
9 template.template_items.each do |klass, name|
10 mount Module.const_get(klass)::Engine => "/#{name}"
56 resources :scroll_panels do
101 resources :comic_stories do
123 resources :stories do
146 resources :story_sheets do
195 resources :sheet_panels do
231 get :by_speech_balloon_template
235 get :count_by_speech_balloon_template
242 resources :panel_pictures do
262 resources :speech_balloons do
275 get :by_speech_balloon_template
278 get :count_by_speech_balloon_template
284 resources :balloons do
292 get :by_speech_balloon
293 get :by_speech_balloon_template
294 get :by_system_picture
296 get :count_by_speech_balloon
297 get :count_by_speech_balloon_template
298 get :count_by_system_picture
303 resources :speeches do
311 get :by_speech_balloon
313 get :by_speech_balloon_template
314 get :by_writing_format
316 get :count_by_speech_balloon
317 get :count_by_speech_balloon_template
318 get :count_by_writing_format
323 resources :ground_pictures do
342 resources :ground_colors do
361 resources :original_pictures do
378 resources :pictures do
392 resources :resource_pictures do
402 get :by_original_picture
403 get :by_license_group
406 get :count_by_original_picture
407 get :count_by_license_group
408 get :count_by_license
414 resources :speech_balloon_templates do
423 get :by_system_picture
424 get :count_by_system_picture
430 resources :writing_formats do
439 get :by_system_picture
441 get :count_by_system_picture
446 resources :license_groups do
454 get :by_resource_picture
455 get :count_by_resource_picture
460 resources :licenses do
469 get :resource_pictures
470 get :by_license_group
471 get :by_system_picture
472 get :resource_pictures_count
473 get :count_by_license_group
474 get :count_by_system_picture
479 resources :authors do
495 resources :artists do
511 resources :system_pictures do
519 get :speech_balloon_templates
521 get :speech_balloon_templates_count
526 resources :original_picture_license_groups do
534 resources :original_picture_licenses do
542 resources :provider_sources do
552 resources :providers do
563 resources :provider_statuses do
574 post :licenses_import
576 post :original_pictures_import
580 resources :demanders do
593 get :original_pictures_export
603 resources :demander_statuses do
616 # The priority is based upon order of creation:
617 # first created -> highest priority.
619 # Sample of regular route:
620 # match 'products/:id' => 'catalog#view'
621 # Keep in mind you can assign values other than :controller and :action
623 # resource_pictures/1.png?subdir=full
624 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
625 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
626 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
627 match 'top/(:action)', :controller => 'top'
628 match 'home/(:action)', :controller => 'home'
629 match 'system/(:action)', :controller => 'system'
630 #match 'authors/(:action(/:id))', :controller => 'authors'
632 # Sample of named route:
633 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
634 # This route can be invoked with purchase_url(:id => product.id)
636 # Sample resource route (maps HTTP verbs to controller actions automatically):
637 # resources :products
639 # Sample resource route with options:
640 # resources :products do
651 # Sample resource route with sub-resources:
652 # resources :products do
653 # resources :comments, :sales
657 # Sample resource route with more complex sub-resources
658 # resources :products do
659 # resources :comments
660 # resources :sales do
661 # get 'recent', :on => :collection
665 # Sample resource route within a namespace:
666 # namespace :admin do
667 # # Directs /admin/products/* to Admin::ProductsController
668 # # (app/controllers/admin/products_controller.rb)
669 # resources :products
672 # You can have the root of your site routed with "root"
673 # just remember to delete public/index.html.
674 root :to => 'top#index'
676 # See how all your routes lay out with "rake routes"
678 # This is a legacy wild controller route that's not recommended for RESTful applications.
679 # Note: This route will make all actions in every controller accessible via GET requests.
680 match ':controller(/:action(/:id(.:format)))'