1 Pettanr::Application.routes.draw do
5 devise_for :demand_users
7 Pettanr::Application.licenses.each do |name, klass|
8 mount Module.const_get(klass)::Engine => "/#{name}"
10 Pettanr::Application.speech_balloons.each do |klass , name|
11 mount Module.const_get(klass)::Engine => "/#{name}"
55 get :resource_pictures
112 resources :scroll_panels do
149 resources :panel_pictures do
166 resources :speech_balloons do
183 resources :balloons do
193 resources :speeches do
203 resources :ground_colors do
218 resources :ground_pictures do
233 resources :original_pictures do
251 resources :resource_pictures do
266 resources :pictures do
278 resources :speech_balloon_templates do
289 resources :licenses do
300 resources :license_groups do
311 resources :original_picture_license_groups do
319 resources :system_pictures do
330 resources :provider_sources do
340 resources :providers do
351 resources :provider_statuses do
362 post :licenses_import
364 post :original_pictures_import
368 resources :demanders do
381 get :original_pictures_export
391 resources :demander_statuses do
404 # The priority is based upon order of creation:
405 # first created -> highest priority.
407 # Sample of regular route:
408 # match 'products/:id' => 'catalog#view'
409 # Keep in mind you can assign values other than :controller and :action
410 match 'resource_pictures/:subdir/:id(.:format)/' => 'resource_pictures#show'
411 match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
412 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
413 match 'top/(:action)', :controller => 'top'
414 match 'home/(:action)', :controller => 'home'
415 match 'system/(:action)', :controller => 'system'
416 #match 'authors/(:action(/:id))', :controller => 'authors'
418 # Sample of named route:
419 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
420 # This route can be invoked with purchase_url(:id => product.id)
422 # Sample resource route (maps HTTP verbs to controller actions automatically):
423 # resources :products
425 # Sample resource route with options:
426 # resources :products do
437 # Sample resource route with sub-resources:
438 # resources :products do
439 # resources :comments, :sales
443 # Sample resource route with more complex sub-resources
444 # resources :products do
445 # resources :comments
446 # resources :sales do
447 # get 'recent', :on => :collection
451 # Sample resource route within a namespace:
452 # namespace :admin do
453 # # Directs /admin/products/* to Admin::ProductsController
454 # # (app/controllers/admin/products_controller.rb)
455 # resources :products
458 # You can have the root of your site routed with "root"
459 # just remember to delete public/index.html.
460 root :to => 'top#index'
462 # See how all your routes lay out with "rake routes"
464 # This is a legacy wild controller route that's not recommended for RESTful applications.
465 # Note: This route will make all actions in every controller accessible via GET requests.
466 match ':controller(/:action(/:id(.:format)))'