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
269 resources :speeches do
275 get :by_speech_balloon
276 get :by_writing_format
277 get :count_by_speech_balloon
278 get :count_by_writing_format
283 resources :ground_pictures do
301 resources :ground_colors do
319 resources :original_pictures do
335 resources :pictures do
348 resources :resource_pictures do
358 get :by_license_group
360 get :count_by_license
361 get :count_by_license_group
367 resources :speech_balloon_templates do
375 get :by_system_picture
376 get :speech_balloons_count
378 get :count_by_system_picture
382 resources :writing_formats do
389 get :by_system_picture
391 get :count_by_system_picture
394 resources :license_groups do
405 resources :licenses do
412 get :resource_pictures
413 get :by_license_group
414 get :by_system_picture
415 get :resource_pictures_count
416 get :count_by_license_group
417 get :count_by_system_picture
420 resources :authors do
444 get :scroll_panels_count
447 get :story_sheets_count
449 get :sheet_panels_count
451 get :panel_pictures_count
452 get :speech_balloons_count
453 get :ground_pictures_count
454 get :ground_colors_count
460 resources :artists do
471 get :resource_pictures
472 get :resource_pictures_count
478 resources :system_pictures do
485 get :speech_balloon_templates
487 get :speech_balloon_templates_count
492 resources :original_picture_license_groups do
500 resources :provider_sources do
510 resources :providers do
521 resources :provider_statuses do
532 post :licenses_import
534 post :original_pictures_import
538 resources :demanders do
551 get :original_pictures_export
561 resources :demander_statuses do
574 # The priority is based upon order of creation:
575 # first created -> highest priority.
577 # Sample of regular route:
578 # match 'products/:id' => 'catalog#view'
579 # Keep in mind you can assign values other than :controller and :action
581 # resource_pictures/1.png?subdir=full
582 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
583 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
584 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
585 match 'top/(:action)', :controller => 'top'
586 match 'home/(:action)', :controller => 'home'
587 match 'system/(:action)', :controller => 'system'
588 #match 'authors/(:action(/:id))', :controller => 'authors'
590 # Sample of named route:
591 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
592 # This route can be invoked with purchase_url(:id => product.id)
594 # Sample resource route (maps HTTP verbs to controller actions automatically):
595 # resources :products
597 # Sample resource route with options:
598 # resources :products do
609 # Sample resource route with sub-resources:
610 # resources :products do
611 # resources :comments, :sales
615 # Sample resource route with more complex sub-resources
616 # resources :products do
617 # resources :comments
618 # resources :sales do
619 # get 'recent', :on => :collection
623 # Sample resource route within a namespace:
624 # namespace :admin do
625 # # Directs /admin/products/* to Admin::ProductsController
626 # # (app/controllers/admin/products_controller.rb)
627 # resources :products
630 # You can have the root of your site routed with "root"
631 # just remember to delete public/index.html.
632 root :to => 'top#index'
634 # See how all your routes lay out with "rake routes"
636 # This is a legacy wild controller route that's not recommended for RESTful applications.
637 # Note: This route will make all actions in every controller accessible via GET requests.
638 match ':controller(/:action(/:id(.:format)))'