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}"
55 resources :scroll_panels do
98 resources :comic_stories do
120 resources :stories do
143 resources :story_sheets do
192 resources :sheet_panels do
228 get :by_speech_balloon_template
232 get :count_by_speech_balloon_template
239 resources :panel_pictures do
259 resources :speech_balloons do
272 get :by_speech_balloon_template
275 get :count_by_speech_balloon_template
281 resources :balloons do
294 resources :speeches do
307 resources :ground_pictures do
326 resources :ground_colors do
345 resources :original_pictures do
362 resources :pictures do
376 resources :resource_pictures do
386 get :by_license_group
389 get :count_by_license_group
390 get :count_by_license
396 resources :speech_balloon_templates do
405 get :by_system_picture
406 get :count_by_system_picture
412 resources :writing_formats do
421 get :by_system_picture
423 get :count_by_system_picture
428 resources :license_groups do
436 get :resource_pictures
437 get :resource_pictures_count
444 resources :licenses do
453 get :resource_pictures
454 get :by_license_group
455 get :by_system_picture
456 get :resource_pictures_count
457 get :count_by_license_group
458 get :count_by_system_picture
463 resources :authors do
479 resources :artists do
495 resources :system_pictures do
503 get :speech_balloon_templates
505 get :speech_balloon_templates_count
510 resources :original_picture_license_groups do
518 resources :original_picture_licenses do
526 resources :provider_sources do
536 resources :providers do
547 resources :provider_statuses do
558 post :licenses_import
560 post :original_pictures_import
564 resources :demanders do
577 get :original_pictures_export
587 resources :demander_statuses do
600 # The priority is based upon order of creation:
601 # first created -> highest priority.
603 # Sample of regular route:
604 # match 'products/:id' => 'catalog#view'
605 # Keep in mind you can assign values other than :controller and :action
607 # resource_pictures/1.png?subdir=full
608 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
609 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
610 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
611 match 'top/(:action)', :controller => 'top'
612 match 'home/(:action)', :controller => 'home'
613 match 'system/(:action)', :controller => 'system'
614 #match 'authors/(:action(/:id))', :controller => 'authors'
616 # Sample of named route:
617 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
618 # This route can be invoked with purchase_url(:id => product.id)
620 # Sample resource route (maps HTTP verbs to controller actions automatically):
621 # resources :products
623 # Sample resource route with options:
624 # resources :products do
635 # Sample resource route with sub-resources:
636 # resources :products do
637 # resources :comments, :sales
641 # Sample resource route with more complex sub-resources
642 # resources :products do
643 # resources :comments
644 # resources :sales do
645 # get 'recent', :on => :collection
649 # Sample resource route within a namespace:
650 # namespace :admin do
651 # # Directs /admin/products/* to Admin::ProductsController
652 # # (app/controllers/admin/products_controller.rb)
653 # resources :products
656 # You can have the root of your site routed with "root"
657 # just remember to delete public/index.html.
658 root :to => 'top#index'
660 # See how all your routes lay out with "rake routes"
662 # This is a legacy wild controller route that's not recommended for RESTful applications.
663 # Note: This route will make all actions in every controller accessible via GET requests.
664 match ':controller(/:action(/:id(.:format)))'