1 Pettanr::Application.routes.draw do
5 devise_for :demand_users
7 Manifest.manifest.system_resources.engine_resources.each do |engine_resource_name, engine_resource|
8 if engine_resource.add_route?
9 engine_resource.resource_items.each do |klass, name|
10 mount Module.const_get(klass)::Engine => "/#{name}"
54 resources :scroll_panels do
97 resources :comic_stories do
119 resources :stories do
142 resources :story_sheets do
182 get :story_sheets_count
184 get :sheet_panels_count
195 resources :sheet_panels do
239 get :scroll_panels_count
241 get :sheet_panels_count
243 get :panel_pictures_count
244 get :speech_balloons_count
245 get :ground_pictures_count
246 get :ground_colors_count
256 resources :panel_pictures do
276 resources :speech_balloons do
289 #get :by_speech_balloon_template
297 resources :balloons do
304 get :by_speech_balloon
305 #get :by_system_picture
306 get :count_by_speech_balloon
311 resources :speeches do
318 get :by_speech_balloon
319 get :by_writing_format
320 get :count_by_speech_balloon
321 get :count_by_writing_format
326 resources :ground_pictures do
345 resources :ground_colors do
364 resources :original_pictures do
381 resources :pictures do
395 resources :resource_pictures do
406 get :by_license_group
408 get :count_by_license
409 get :count_by_license_group
415 resources :speech_balloon_templates do
424 get :by_system_picture
425 get :speech_balloons_count
427 get :count_by_system_picture
431 resources :writing_formats do
439 get :by_system_picture
441 get :count_by_system_picture
444 resources :license_groups do
456 resources :licenses do
464 get :resource_pictures
465 get :by_license_group
466 get :by_system_picture
467 get :resource_pictures_count
468 get :count_by_license_group
469 get :count_by_system_picture
472 resources :authors do
497 get :scroll_panels_count
500 get :story_sheets_count
502 get :sheet_panels_count
504 get :panel_pictures_count
505 get :speech_balloons_count
506 get :ground_pictures_count
507 get :ground_colors_count
513 resources :artists do
524 get :resource_pictures
525 get :resource_pictures_count
531 resources :system_pictures do
539 get :speech_balloon_templates
541 get :speech_balloon_templates_count
546 resources :original_picture_license_groups do
554 resources :provider_sources do
564 resources :providers do
575 resources :provider_statuses do
586 post :licenses_import
588 post :original_pictures_import
592 resources :demanders do
605 get :original_pictures_export
615 resources :demander_statuses do
628 # The priority is based upon order of creation:
629 # first created -> highest priority.
631 # Sample of regular route:
632 # match 'products/:id' => 'catalog#view'
633 # Keep in mind you can assign values other than :controller and :action
635 # resource_pictures/1.png?subdir=full
636 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
637 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
638 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
639 match 'top/(:action)', :controller => 'top'
640 match 'home/(:action)', :controller => 'home'
641 match 'system/(:action)', :controller => 'system'
642 #match 'authors/(:action(/:id))', :controller => 'authors'
644 # Sample of named route:
645 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
646 # This route can be invoked with purchase_url(:id => product.id)
648 # Sample resource route (maps HTTP verbs to controller actions automatically):
649 # resources :products
651 # Sample resource route with options:
652 # resources :products do
663 # Sample resource route with sub-resources:
664 # resources :products do
665 # resources :comments, :sales
669 # Sample resource route with more complex sub-resources
670 # resources :products do
671 # resources :comments
672 # resources :sales do
673 # get 'recent', :on => :collection
677 # Sample resource route within a namespace:
678 # namespace :admin do
679 # # Directs /admin/products/* to Admin::ProductsController
680 # # (app/controllers/admin/products_controller.rb)
681 # resources :products
684 # You can have the root of your site routed with "root"
685 # just remember to delete public/index.html.
686 root :to => 'top#index'
688 # See how all your routes lay out with "rake routes"
690 # This is a legacy wild controller route that's not recommended for RESTful applications.
691 # Note: This route will make all actions in every controller accessible via GET requests.
692 match ':controller(/:action(/:id(.:format)))'