1 Pettanr::Application.routes.draw do
3 devise_for :users, controllers: {sessions: 'user_sessions'}
5 devise_for :demand_users
7 Manifest.manifest.system_resources.templates.each do |template_name, template|
9 template.template_items.each do |klass, name|
10 mount Module.const_get(klass)::Engine => "/#{name}"
50 resources :scroll_panels do
87 resources :comic_stories do
105 resources :stories do
124 resources :story_sheets do
165 resources :sheet_panels do
196 get :by_speech_balloon_template
202 resources :panel_pictures do
219 resources :speech_balloons do
231 get :by_speech_balloon_template
237 resources :balloons do
244 get :by_speech_balloon
245 get :by_speech_balloon_template
246 get :by_system_picture
251 resources :speeches do
258 get :by_speech_balloon
260 get :by_speech_balloon_template
261 get :by_writing_format
266 resources :ground_pictures do
282 resources :ground_colors do
298 resources :original_pictures do
314 resources :pictures do
326 resources :resource_pictures do
334 get :by_original_picture
335 get :by_license_group
342 resources :resource_picture_pictures do
348 get :by_original_picture
349 get :by_resource_picture
353 resources :speech_balloon_templates do
361 get :by_system_picture
366 resources :writing_formats do
374 get :by_system_picture
380 resources :license_groups do
387 get :by_resource_picture
392 resources :licenses do
400 get :resource_pictures
401 get :by_license_group
402 get :by_system_picture
403 get :resource_pictures_count
408 resources :authors do
423 resources :artists do
438 resources :system_pictures do
445 get :speech_balloon_templates
450 resources :original_picture_license_groups do
458 resources :original_picture_licenses do
466 resources :provider_sources do
476 resources :providers do
487 resources :provider_statuses do
498 post :licenses_import
500 post :original_pictures_import
504 resources :demanders do
517 get :original_pictures_export
527 resources :demander_statuses do
540 # The priority is based upon order of creation:
541 # first created -> highest priority.
543 # Sample of regular route:
544 # match 'products/:id' => 'catalog#view'
545 # Keep in mind you can assign values other than :controller and :action
547 # resource_pictures/1.png?subdir=full
548 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
549 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
550 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
551 match 'top/(:action)', :controller => 'top', via: [:get]
552 match 'home/(:action)', :controller => 'home', via: [:get]
553 match 'system/(:action)', :controller => 'system', via: [:get, :post]
554 #match 'authors/(:action(/:id))', :controller => 'authors'
556 # Sample of named route:
557 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
558 # This route can be invoked with purchase_url(:id => product.id)
560 # Sample resource route (maps HTTP verbs to controller actions automatically):
561 # resources :products
563 # Sample resource route with options:
564 # resources :products do
575 # Sample resource route with sub-resources:
576 # resources :products do
577 # resources :comments, :sales
581 # Sample resource route with more complex sub-resources
582 # resources :products do
583 # resources :comments
584 # resources :sales do
585 # get 'recent', :on => :collection
589 # Sample resource route within a namespace:
590 # namespace :admin do
591 # # Directs /admin/products/* to Admin::ProductsController
592 # # (app/controllers/admin/products_controller.rb)
593 # resources :products
596 # You can have the root of your site routed with "root"
597 # just remember to delete public/index.html.
598 root :to => 'top#index'
600 # See how all your routes lay out with "rake routes"
602 # This is a legacy wild controller route that's not recommended for RESTful applications.
603 # Note: This route will make all actions in every controller accessible via GET requests.
604 match ':controller(/:action(/:id(.:format)))', via: [:get, :post]