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}"
30 get :scroll_panels_count
41 resources :scroll_panels do
98 get :story_sheets_count
109 resources :story_sheets do
146 get :story_sheets_count
148 get :sheet_panels_count
159 resources :sheet_panels do
200 get :scroll_panels_count
202 get :sheet_panels_count
204 get :panel_pictures_count
205 get :speech_balloons_count
206 get :ground_pictures_count
207 get :ground_colors_count
217 resources :panel_pictures do
236 resources :speech_balloons do
248 #get :by_speech_balloon_template
256 resources :balloons do
262 get :by_speech_balloon
263 #get :by_system_picture
264 get :count_by_speech_balloon
267 resources :speeches do
273 get :by_speech_balloon
274 get :by_writing_format
275 get :count_by_speech_balloon
276 get :count_by_writing_format
279 resources :ground_pictures do
297 resources :ground_colors do
315 resources :original_pictures do
331 resources :pictures do
343 resources :resource_pictures do
353 get :by_license_group
355 get :count_by_license
356 get :count_by_license_group
362 resources :speech_balloon_templates do
370 get :by_system_picture
371 get :speech_balloons_count
373 get :count_by_system_picture
377 resources :writing_formats do
384 get :by_system_picture
386 get :count_by_system_picture
389 resources :license_groups do
400 resources :licenses do
407 get :resource_pictures
408 get :by_license_group
409 get :by_system_picture
410 get :resource_pictures_count
411 get :count_by_license_group
412 get :count_by_system_picture
415 resources :authors do
439 get :scroll_panels_count
442 get :story_sheets_count
444 get :sheet_panels_count
446 get :panel_pictures_count
447 get :speech_balloons_count
448 get :ground_pictures_count
449 get :ground_colors_count
455 resources :artists do
466 get :resource_pictures
467 get :resource_pictures_count
473 resources :system_pictures do
480 get :speech_balloon_templates
482 get :speech_balloon_templates_count
487 resources :original_picture_license_groups do
495 resources :provider_sources do
505 resources :providers do
516 resources :provider_statuses do
527 post :licenses_import
529 post :original_pictures_import
533 resources :demanders do
546 get :original_pictures_export
556 resources :demander_statuses do
569 # The priority is based upon order of creation:
570 # first created -> highest priority.
572 # Sample of regular route:
573 # match 'products/:id' => 'catalog#view'
574 # Keep in mind you can assign values other than :controller and :action
576 # resource_pictures/1.png?subdir=full
577 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
578 match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
579 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
580 match 'top/(:action)', :controller => 'top'
581 match 'home/(:action)', :controller => 'home'
582 match 'system/(:action)', :controller => 'system'
583 #match 'authors/(:action(/:id))', :controller => 'authors'
585 # Sample of named route:
586 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
587 # This route can be invoked with purchase_url(:id => product.id)
589 # Sample resource route (maps HTTP verbs to controller actions automatically):
590 # resources :products
592 # Sample resource route with options:
593 # resources :products do
604 # Sample resource route with sub-resources:
605 # resources :products do
606 # resources :comments, :sales
610 # Sample resource route with more complex sub-resources
611 # resources :products do
612 # resources :comments
613 # resources :sales do
614 # get 'recent', :on => :collection
618 # Sample resource route within a namespace:
619 # namespace :admin do
620 # # Directs /admin/products/* to Admin::ProductsController
621 # # (app/controllers/admin/products_controller.rb)
622 # resources :products
625 # You can have the root of your site routed with "root"
626 # just remember to delete public/index.html.
627 root :to => 'top#index'
629 # See how all your routes lay out with "rake routes"
631 # This is a legacy wild controller route that's not recommended for RESTful applications.
632 # Note: This route will make all actions in every controller accessible via GET requests.
633 match ':controller(/:action(/:id(.:format)))'