1 Pettanr::Application.routes.draw do
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}"
54 resources :scroll_panels do
97 resources :comic_stories do
119 resources :stories do
142 resources :story_sheets do
191 resources :sheet_panels do
227 get :by_speech_balloon_template
231 get :count_by_speech_balloon_template
238 resources :panel_pictures do
258 resources :speech_balloons do
271 get :by_speech_balloon_template
274 get :count_by_speech_balloon_template
280 resources :balloons do
293 resources :speeches do
306 resources :ground_pictures do
325 resources :ground_colors do
344 resources :original_pictures do
361 resources :pictures do
375 resources :resource_pictures do
385 get :by_license_group
388 get :count_by_license_group
389 get :count_by_license
395 resources :speech_balloon_templates do
404 get :by_system_picture
405 get :count_by_system_picture
411 resources :writing_formats do
420 get :by_system_picture
422 get :count_by_system_picture
427 resources :license_groups do
435 get :resource_pictures
436 get :resource_pictures_count
443 resources :licenses do
452 get :resource_pictures
453 get :by_license_group
454 get :by_system_picture
455 get :resource_pictures_count
456 get :count_by_license_group
457 get :count_by_system_picture
462 resources :authors do
478 resources :artists do
494 resources :system_pictures do
502 get :speech_balloon_templates
504 get :speech_balloon_templates_count
509 resources :original_picture_license_groups do
517 resources :original_picture_licenses do
525 resources :provider_sources do
535 resources :providers do
546 resources :provider_statuses do
557 post :licenses_import
559 post :original_pictures_import
563 resources :demanders do
576 get :original_pictures_export
586 resources :demander_statuses do
599 # The priority is based upon order of creation:
600 # first created -> highest priority.
602 # Sample of regular route:
603 # match 'products/:id' => 'catalog#view'
604 # Keep in mind you can assign values other than :controller and :action
606 # resource_pictures/1.png?subdir=full
607 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
608 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
609 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
610 match 'top/(:action)', :controller => 'top'
611 match 'home/(:action)', :controller => 'home'
612 match 'system/(:action)', :controller => 'system'
613 #match 'authors/(:action(/:id))', :controller => 'authors'
615 # Sample of named route:
616 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
617 # This route can be invoked with purchase_url(:id => product.id)
619 # Sample resource route (maps HTTP verbs to controller actions automatically):
620 # resources :products
622 # Sample resource route with options:
623 # resources :products do
634 # Sample resource route with sub-resources:
635 # resources :products do
636 # resources :comments, :sales
640 # Sample resource route with more complex sub-resources
641 # resources :products do
642 # resources :comments
643 # resources :sales do
644 # get 'recent', :on => :collection
648 # Sample resource route within a namespace:
649 # namespace :admin do
650 # # Directs /admin/products/* to Admin::ProductsController
651 # # (app/controllers/admin/products_controller.rb)
652 # resources :products
655 # You can have the root of your site routed with "root"
656 # just remember to delete public/index.html.
657 root :to => 'top#index'
659 # See how all your routes lay out with "rake routes"
661 # This is a legacy wild controller route that's not recommended for RESTful applications.
662 # Note: This route will make all actions in every controller accessible via GET requests.
663 match ':controller(/:action(/:id(.:format)))'