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}"
47 get :scroll_panels_count
58 resources :scroll_panels do
102 resources :stories do
117 get :story_sheets_count
128 resources :story_sheets do
167 get :story_sheets_count
169 get :sheet_panels_count
180 resources :sheet_panels do
223 get :scroll_panels_count
225 get :sheet_panels_count
227 get :panel_pictures_count
228 get :speech_balloons_count
229 get :ground_pictures_count
230 get :ground_colors_count
240 resources :panel_pictures do
259 resources :speech_balloons do
271 #get :by_speech_balloon_template
279 resources :balloons do
285 get :by_speech_balloon
286 #get :by_system_picture
287 get :count_by_speech_balloon
292 resources :speeches do
298 get :by_speech_balloon
299 get :by_writing_format
300 get :count_by_speech_balloon
301 get :count_by_writing_format
306 resources :ground_pictures do
324 resources :ground_colors do
342 resources :original_pictures do
358 resources :pictures do
371 resources :resource_pictures do
381 get :by_license_group
383 get :count_by_license
384 get :count_by_license_group
390 resources :speech_balloon_templates do
398 get :by_system_picture
399 get :speech_balloons_count
401 get :count_by_system_picture
405 resources :writing_formats do
412 get :by_system_picture
414 get :count_by_system_picture
417 resources :license_groups do
428 resources :licenses do
436 get :resource_pictures
437 get :by_license_group
438 get :by_system_picture
439 get :resource_pictures_count
440 get :count_by_license_group
441 get :count_by_system_picture
444 resources :authors do
468 get :scroll_panels_count
471 get :story_sheets_count
473 get :sheet_panels_count
475 get :panel_pictures_count
476 get :speech_balloons_count
477 get :ground_pictures_count
478 get :ground_colors_count
484 resources :artists do
495 get :resource_pictures
496 get :resource_pictures_count
502 resources :system_pictures do
509 get :speech_balloon_templates
511 get :speech_balloon_templates_count
516 resources :original_picture_license_groups do
524 resources :provider_sources do
534 resources :providers do
545 resources :provider_statuses do
556 post :licenses_import
558 post :original_pictures_import
562 resources :demanders do
575 get :original_pictures_export
585 resources :demander_statuses do
598 # The priority is based upon order of creation:
599 # first created -> highest priority.
601 # Sample of regular route:
602 # match 'products/:id' => 'catalog#view'
603 # Keep in mind you can assign values other than :controller and :action
605 # resource_pictures/1.png?subdir=full
606 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
607 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
608 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
609 match 'top/(:action)', :controller => 'top'
610 match 'home/(:action)', :controller => 'home'
611 match 'system/(:action)', :controller => 'system'
612 #match 'authors/(:action(/:id))', :controller => 'authors'
614 # Sample of named route:
615 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
616 # This route can be invoked with purchase_url(:id => product.id)
618 # Sample resource route (maps HTTP verbs to controller actions automatically):
619 # resources :products
621 # Sample resource route with options:
622 # resources :products do
633 # Sample resource route with sub-resources:
634 # resources :products do
635 # resources :comments, :sales
639 # Sample resource route with more complex sub-resources
640 # resources :products do
641 # resources :comments
642 # resources :sales do
643 # get 'recent', :on => :collection
647 # Sample resource route within a namespace:
648 # namespace :admin do
649 # # Directs /admin/products/* to Admin::ProductsController
650 # # (app/controllers/admin/products_controller.rb)
651 # resources :products
654 # You can have the root of your site routed with "root"
655 # just remember to delete public/index.html.
656 root :to => 'top#index'
658 # See how all your routes lay out with "rake routes"
660 # This is a legacy wild controller route that's not recommended for RESTful applications.
661 # Note: This route will make all actions in every controller accessible via GET requests.
662 match ':controller(/:action(/:id(.:format)))'