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
260 resources :speech_balloons do
273 #get :by_speech_balloon_template
281 resources :balloons do
288 get :by_speech_balloon
289 #get :by_system_picture
290 get :count_by_speech_balloon
295 resources :speeches do
302 get :by_speech_balloon
303 get :by_writing_format
304 get :count_by_speech_balloon
305 get :count_by_writing_format
310 resources :ground_pictures do
329 resources :ground_colors do
348 resources :original_pictures do
364 resources :pictures do
377 resources :resource_pictures do
387 get :by_license_group
389 get :count_by_license
390 get :count_by_license_group
396 resources :speech_balloon_templates do
404 get :by_system_picture
405 get :speech_balloons_count
407 get :count_by_system_picture
411 resources :writing_formats do
418 get :by_system_picture
420 get :count_by_system_picture
423 resources :license_groups do
434 resources :licenses do
442 get :resource_pictures
443 get :by_license_group
444 get :by_system_picture
445 get :resource_pictures_count
446 get :count_by_license_group
447 get :count_by_system_picture
450 resources :authors do
466 resources :artists do
482 resources :system_pictures do
489 get :speech_balloon_templates
491 get :speech_balloon_templates_count
496 resources :original_picture_license_groups do
504 resources :provider_sources do
514 resources :providers do
525 resources :provider_statuses do
536 post :licenses_import
538 post :original_pictures_import
542 resources :demanders do
555 get :original_pictures_export
565 resources :demander_statuses do
578 # The priority is based upon order of creation:
579 # first created -> highest priority.
581 # Sample of regular route:
582 # match 'products/:id' => 'catalog#view'
583 # Keep in mind you can assign values other than :controller and :action
585 # resource_pictures/1.png?subdir=full
586 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
587 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
588 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
589 match 'top/(:action)', :controller => 'top'
590 match 'home/(:action)', :controller => 'home'
591 match 'system/(:action)', :controller => 'system'
592 #match 'authors/(:action(/:id))', :controller => 'authors'
594 # Sample of named route:
595 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
596 # This route can be invoked with purchase_url(:id => product.id)
598 # Sample resource route (maps HTTP verbs to controller actions automatically):
599 # resources :products
601 # Sample resource route with options:
602 # resources :products do
613 # Sample resource route with sub-resources:
614 # resources :products do
615 # resources :comments, :sales
619 # Sample resource route with more complex sub-resources
620 # resources :products do
621 # resources :comments
622 # resources :sales do
623 # get 'recent', :on => :collection
627 # Sample resource route within a namespace:
628 # namespace :admin do
629 # # Directs /admin/products/* to Admin::ProductsController
630 # # (app/controllers/admin/products_controller.rb)
631 # resources :products
634 # You can have the root of your site routed with "root"
635 # just remember to delete public/index.html.
636 root :to => 'top#index'
638 # See how all your routes lay out with "rake routes"
640 # This is a legacy wild controller route that's not recommended for RESTful applications.
641 # Note: This route will make all actions in every controller accessible via GET requests.
642 match ':controller(/:action(/:id(.:format)))'