1 Pettanr::Application.routes.draw do
5 devise_for :demand_users
7 Manifest.manifest.system_resources.license_groups.each do |klass, name|
9 mount Module.const_get(klass)::Engine => "/#{name}"
11 Manifest.manifest.system_resources.speech_balloon_templates.each do |klass , name|
12 mount Module.const_get(klass)::Engine => "/#{name}"
37 resources :scroll_panels do
95 resources :story_sheets do
136 resources :sheet_panels do
181 resources :panel_pictures do
198 resources :speech_balloons do
210 #get :by_speech_balloon_template
216 resources :balloons do
222 get :by_speech_balloon
223 #get :by_system_picture
226 resources :speeches do
232 get :by_speech_balloon
233 get :by_writing_format
236 resources :ground_pictures do
252 resources :ground_colors do
268 resources :original_pictures do
284 resources :pictures do
296 resources :resource_pictures do
306 get :by_license_group
312 resources :speech_balloon_templates do
320 get :by_system_picture
324 resources :writing_formats do
331 get :by_system_picture
334 resources :license_groups do
344 resources :licenses do
351 get :resource_pictures
352 get :by_license_group
353 get :by_system_picture
356 resources :authors do
384 resources :artists do
395 get :resource_pictures
401 resources :system_pictures do
408 get :speech_balloon_templates
413 resources :original_picture_license_groups do
421 resources :provider_sources do
431 resources :providers do
442 resources :provider_statuses do
453 post :licenses_import
455 post :original_pictures_import
459 resources :demanders do
472 get :original_pictures_export
482 resources :demander_statuses do
495 # The priority is based upon order of creation:
496 # first created -> highest priority.
498 # Sample of regular route:
499 # match 'products/:id' => 'catalog#view'
500 # Keep in mind you can assign values other than :controller and :action
501 match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
502 match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
503 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
504 match 'top/(:action)', :controller => 'top'
505 match 'home/(:action)', :controller => 'home'
506 match 'system/(:action)', :controller => 'system'
507 #match 'authors/(:action(/:id))', :controller => 'authors'
509 # Sample of named route:
510 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
511 # This route can be invoked with purchase_url(:id => product.id)
513 # Sample resource route (maps HTTP verbs to controller actions automatically):
514 # resources :products
516 # Sample resource route with options:
517 # resources :products do
528 # Sample resource route with sub-resources:
529 # resources :products do
530 # resources :comments, :sales
534 # Sample resource route with more complex sub-resources
535 # resources :products do
536 # resources :comments
537 # resources :sales do
538 # get 'recent', :on => :collection
542 # Sample resource route within a namespace:
543 # namespace :admin do
544 # # Directs /admin/products/* to Admin::ProductsController
545 # # (app/controllers/admin/products_controller.rb)
546 # resources :products
549 # You can have the root of your site routed with "root"
550 # just remember to delete public/index.html.
551 root :to => 'top#index'
553 # See how all your routes lay out with "rake routes"
555 # This is a legacy wild controller route that's not recommended for RESTful applications.
556 # Note: This route will make all actions in every controller accessible via GET requests.
557 match ':controller(/:action(/:id(.:format)))'