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
231 get :by_speech_balloon_template
235 get :count_by_speech_balloon_template
242 resources :panel_pictures do
262 resources :speech_balloons do
275 get :by_speech_balloon_template
278 get :count_by_speech_balloon_template
284 resources :balloons do
291 get :by_speech_balloon
292 #get :by_system_picture
293 get :count_by_speech_balloon
298 resources :speeches do
305 get :by_speech_balloon
306 get :by_writing_format
307 get :count_by_speech_balloon
308 get :count_by_writing_format
313 resources :ground_pictures do
332 resources :ground_colors do
351 resources :original_pictures do
368 resources :pictures do
382 resources :resource_pictures do
393 get :by_license_group
395 get :count_by_license
396 get :count_by_license_group
402 resources :speech_balloon_templates do
410 get :by_system_picture
411 get :count_by_system_picture
416 resources :writing_formats do
424 get :by_system_picture
426 get :count_by_system_picture
429 resources :license_groups do
441 resources :licenses do
449 get :resource_pictures
450 get :by_license_group
451 get :by_system_picture
452 get :resource_pictures_count
453 get :count_by_license_group
454 get :count_by_system_picture
457 resources :authors do
473 resources :artists do
489 resources :system_pictures do
497 get :speech_balloon_templates
499 get :speech_balloon_templates_count
504 resources :original_picture_license_groups do
512 resources :provider_sources do
522 resources :providers do
533 resources :provider_statuses do
544 post :licenses_import
546 post :original_pictures_import
550 resources :demanders do
563 get :original_pictures_export
573 resources :demander_statuses do
586 # The priority is based upon order of creation:
587 # first created -> highest priority.
589 # Sample of regular route:
590 # match 'products/:id' => 'catalog#view'
591 # Keep in mind you can assign values other than :controller and :action
593 # resource_pictures/1.png?subdir=full
594 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
595 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
596 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
597 match 'top/(:action)', :controller => 'top'
598 match 'home/(:action)', :controller => 'home'
599 match 'system/(:action)', :controller => 'system'
600 #match 'authors/(:action(/:id))', :controller => 'authors'
602 # Sample of named route:
603 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
604 # This route can be invoked with purchase_url(:id => product.id)
606 # Sample resource route (maps HTTP verbs to controller actions automatically):
607 # resources :products
609 # Sample resource route with options:
610 # resources :products do
621 # Sample resource route with sub-resources:
622 # resources :products do
623 # resources :comments, :sales
627 # Sample resource route with more complex sub-resources
628 # resources :products do
629 # resources :comments
630 # resources :sales do
631 # get 'recent', :on => :collection
635 # Sample resource route within a namespace:
636 # namespace :admin do
637 # # Directs /admin/products/* to Admin::ProductsController
638 # # (app/controllers/admin/products_controller.rb)
639 # resources :products
642 # You can have the root of your site routed with "root"
643 # just remember to delete public/index.html.
644 root :to => 'top#index'
646 # See how all your routes lay out with "rake routes"
648 # This is a legacy wild controller route that's not recommended for RESTful applications.
649 # Note: This route will make all actions in every controller accessible via GET requests.
650 match ':controller(/:action(/:id(.:format)))'