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}"
54 resources :scroll_panels do
97 resources :comic_stories do
119 resources :stories do
142 resources :story_sheets do
182 get :story_sheets_count
184 get :sheet_panels_count
195 resources :sheet_panels do
239 get :scroll_panels_count
241 get :sheet_panels_count
243 get :panel_pictures_count
244 get :speech_balloons_count
245 get :ground_pictures_count
246 get :ground_colors_count
256 resources :panel_pictures do
276 resources :speech_balloons do
289 #get :by_speech_balloon_template
297 resources :balloons do
304 get :by_speech_balloon
305 #get :by_system_picture
306 get :count_by_speech_balloon
311 resources :speeches do
318 get :by_speech_balloon
319 get :by_writing_format
320 get :count_by_speech_balloon
321 get :count_by_writing_format
326 resources :ground_pictures do
345 resources :ground_colors do
364 resources :original_pictures do
381 resources :pictures do
395 resources :resource_pictures do
406 get :by_license_group
408 get :count_by_license
409 get :count_by_license_group
415 resources :speech_balloon_templates do
424 get :by_system_picture
425 get :speech_balloons_count
427 get :count_by_system_picture
431 resources :writing_formats do
439 get :by_system_picture
441 get :count_by_system_picture
444 resources :license_groups do
456 resources :licenses do
464 get :resource_pictures
465 get :by_license_group
466 get :by_system_picture
467 get :resource_pictures_count
468 get :count_by_license_group
469 get :count_by_system_picture
472 resources :authors do
488 resources :artists do
504 resources :system_pictures do
512 get :speech_balloon_templates
514 get :speech_balloon_templates_count
519 resources :original_picture_license_groups do
527 resources :provider_sources do
537 resources :providers do
548 resources :provider_statuses do
559 post :licenses_import
561 post :original_pictures_import
565 resources :demanders do
578 get :original_pictures_export
588 resources :demander_statuses do
601 # The priority is based upon order of creation:
602 # first created -> highest priority.
604 # Sample of regular route:
605 # match 'products/:id' => 'catalog#view'
606 # Keep in mind you can assign values other than :controller and :action
608 # resource_pictures/1.png?subdir=full
609 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
610 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
611 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
612 match 'top/(:action)', :controller => 'top'
613 match 'home/(:action)', :controller => 'home'
614 match 'system/(:action)', :controller => 'system'
615 #match 'authors/(:action(/:id))', :controller => 'authors'
617 # Sample of named route:
618 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
619 # This route can be invoked with purchase_url(:id => product.id)
621 # Sample resource route (maps HTTP verbs to controller actions automatically):
622 # resources :products
624 # Sample resource route with options:
625 # resources :products do
636 # Sample resource route with sub-resources:
637 # resources :products do
638 # resources :comments, :sales
642 # Sample resource route with more complex sub-resources
643 # resources :products do
644 # resources :comments
645 # resources :sales do
646 # get 'recent', :on => :collection
650 # Sample resource route within a namespace:
651 # namespace :admin do
652 # # Directs /admin/products/* to Admin::ProductsController
653 # # (app/controllers/admin/products_controller.rb)
654 # resources :products
657 # You can have the root of your site routed with "root"
658 # just remember to delete public/index.html.
659 root :to => 'top#index'
661 # See how all your routes lay out with "rake routes"
663 # This is a legacy wild controller route that's not recommended for RESTful applications.
664 # Note: This route will make all actions in every controller accessible via GET requests.
665 match ':controller(/:action(/:id(.:format)))'