1 Pettanr::Application.routes.draw do
2 devise_for :users, controllers: {sessions: 'user_sessions'}
4 devise_for :demand_users
6 Manifest.manifest.system_resources.templates.each do |template_name, template|
8 template.template_items.each do |klass, name|
9 mount Module.const_get(klass)::Engine => "/#{name}"
49 resources :scroll_panels do
86 resources :comic_stories do
104 resources :stories do
123 resources :story_sheets do
164 resources :sheet_panels do
195 get :by_speech_balloon_template
201 resources :panel_pictures do
218 resources :speech_balloons do
230 get :by_speech_balloon_template
236 resources :balloons do
243 get :by_speech_balloon
244 get :by_speech_balloon_template
245 get :by_system_picture
250 resources :speeches do
257 get :by_speech_balloon
259 get :by_speech_balloon_template
260 get :by_writing_format
265 resources :ground_pictures do
281 resources :ground_colors do
297 resources :original_pictures do
313 resources :pictures do
325 resources :resource_pictures do
333 get :by_original_picture
334 get :by_license_group
341 resources :resource_picture_pictures do
347 get :by_original_picture
348 get :by_resource_picture
352 resources :speech_balloon_templates do
360 get :by_system_picture
365 resources :writing_formats do
373 get :by_system_picture
379 resources :license_groups do
386 get :by_resource_picture
391 resources :licenses do
399 get :resource_pictures
400 get :by_license_group
401 get :by_system_picture
402 get :resource_pictures_count
407 resources :authors do
422 resources :artists do
437 resources :system_pictures do
444 get :speech_balloon_templates
449 resources :original_picture_license_groups do
457 resources :original_picture_licenses do
465 resources :provider_sources do
475 resources :providers do
486 resources :provider_statuses do
497 post :licenses_import
499 post :original_pictures_import
503 resources :demanders do
516 get :original_pictures_export
526 resources :demander_statuses do
539 # The priority is based upon order of creation:
540 # first created -> highest priority.
542 # Sample of regular route:
543 # match 'products/:id' => 'catalog#view'
544 # Keep in mind you can assign values other than :controller and :action
546 # resource_pictures/1.png?subdir=full
547 # match 'resource_pictures/full/:id(.:format)/' => 'resource_pictures#show'
548 # match 'pictures/:subdir/:id(.:format)/' => 'pictures#show'
549 #match 'scroll_panels/scroll/:id(.:format)' => 'scroll_panels#scroll'
550 match 'top/(:action)', :controller => 'top', via: [:get]
551 match 'home/(:action)', :controller => 'home', via: [:get]
552 match 'system/(:action)', :controller => 'system', via: [:get, :post]
553 #match 'authors/(:action(/:id))', :controller => 'authors'
555 # Sample of named route:
556 # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
557 # This route can be invoked with purchase_url(:id => product.id)
559 # Sample resource route (maps HTTP verbs to controller actions automatically):
560 # resources :products
562 # Sample resource route with options:
563 # resources :products do
574 # Sample resource route with sub-resources:
575 # resources :products do
576 # resources :comments, :sales
580 # Sample resource route with more complex sub-resources
581 # resources :products do
582 # resources :comments
583 # resources :sales do
584 # get 'recent', :on => :collection
588 # Sample resource route within a namespace:
589 # namespace :admin do
590 # # Directs /admin/products/* to Admin::ProductsController
591 # # (app/controllers/admin/products_controller.rb)
592 # resources :products
595 # You can have the root of your site routed with "root"
596 # just remember to delete public/index.html.
597 root :to => 'top#index'
599 # See how all your routes lay out with "rake routes"
601 # This is a legacy wild controller route that's not recommended for RESTful applications.
602 # Note: This route will make all actions in every controller accessible via GET requests.
603 match ':controller(/:action(/:id(.:format)))', via: [:get, :post]