1 Pettanr::Application.routes.draw do
5 devise_for :demand_users
7 Pettanr::Application.manifest.system_resources.license_groups.each do |klass, name|
8 mount Module.const_get(klass)::Engine => "/#{name}"
10 Pettanr::Application.manifest.system_resources.speech_balloon_templates.each do |klass , name|
11 mount Module.const_get(klass)::Engine => "/#{name}"
36 resources :scroll_panels do
94 resources :story_sheets do
135 resources :sheet_panels do
180 resources :panel_pictures do
197 resources :speech_balloons do
209 #get :by_speech_balloon_template
215 resources :balloons do
221 get :by_speech_balloon
222 #get :by_system_picture
225 resources :speeches do
231 get :by_speech_balloon
232 get :by_writing_format
235 resources :ground_pictures do
251 resources :ground_colors do
267 resources :original_pictures do
283 resources :pictures do
295 resources :resource_pictures do
305 get :by_license_group
311 resources :speech_balloon_templates do
319 get :by_system_picture
323 resources :writing_formats do
330 get :by_system_picture
333 resources :license_groups do
343 resources :licenses do
350 get :resource_pictures
351 get :by_license_group
352 get :by_system_picture
355 resources :authors do
383 resources :artists do
394 get :resource_pictures
400 resources :system_pictures do
407 get :speech_balloon_templates
412 resources :original_picture_license_groups do
420 resources :provider_sources do
430 resources :providers do
441 resources :provider_statuses do
452 post :licenses_import
454 post :original_pictures_import
458 resources :demanders do
471 get :original_pictures_export
481 resources :demander_statuses do
494 # The priority is based upon order of creation:
495 # first created -> highest priority.
497 # Sample of regular route:
498 # match 'products/:id' => 'catalog#view'
499 # Keep in mind you can assign values other than :controller and :action
500 match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
501 match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
502 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
503 match 'top/(:action)', :controller => 'top'
504 match 'home/(:action)', :controller => 'home'
505 match 'system/(:action)', :controller => 'system'
506 #match 'authors/(:action(/:id))', :controller => 'authors'
508 # Sample of named route:
509 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
510 # This route can be invoked with purchase_url(:id => product.id)
512 # Sample resource route (maps HTTP verbs to controller actions automatically):
513 # resources :products
515 # Sample resource route with options:
516 # resources :products do
527 # Sample resource route with sub-resources:
528 # resources :products do
529 # resources :comments, :sales
533 # Sample resource route with more complex sub-resources
534 # resources :products do
535 # resources :comments
536 # resources :sales do
537 # get 'recent', :on => :collection
541 # Sample resource route within a namespace:
542 # namespace :admin do
543 # # Directs /admin/products/* to Admin::ProductsController
544 # # (app/controllers/admin/products_controller.rb)
545 # resources :products
548 # You can have the root of your site routed with "root"
549 # just remember to delete public/index.html.
550 root :to => 'top#index'
552 # See how all your routes lay out with "rake routes"
554 # This is a legacy wild controller route that's not recommended for RESTful applications.
555 # Note: This route will make all actions in every controller accessible via GET requests.
556 match ':controller(/:action(/:id(.:format)))'