routes.rb 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Zammad::Application.routes.draw do
  2. # app init
  3. match '/init', :to => 'init#index'
  4. match '/app', :to => 'init#index'
  5. # You can have the root of your site routed with "root"
  6. # just remember to delete public/index.html.
  7. root :to => 'init#index'
  8. # omniauth
  9. match '/auth/:provider/callback', :to => 'sessions#create_omniauth'
  10. # base objects
  11. resources :settings, :only => [:create, :show, :index, :update]
  12. resources :users, :only => [:create, :show, :index, :update]
  13. match '/users/password_reset', :to => 'users#password_reset_send'
  14. match '/users/password_reset_verify', :to => 'users#password_reset_verify'
  15. resources :groups, :only => [:create, :show, :index, :update]
  16. resources :roles, :only => [:create, :show, :index, :update]
  17. resources :organizations, :only => [:create, :show, :index, :update]
  18. # overviews
  19. resources :overviews
  20. # notes
  21. resources :notes
  22. # tickets
  23. resources :channels, :only => [:create, :show, :index, :update, :destroy]
  24. resources :ticket_articles, :only => [:create, :show, :index, :update]
  25. resources :ticket_priorities, :only => [:create, :show, :index, :update]
  26. resources :ticket_states, :only => [:create, :show, :index, :update]
  27. resources :tickets, :only => [:create, :show, :index, :update]
  28. match '/ticket_full/:id', :to => 'ticket_overviews#ticket_full'
  29. match '/ticket_attachment/:id', :to => 'ticket_overviews#ticket_attachment'
  30. match '/ticket_attachment_new', :to => 'ticket_overviews#ticket_attachment_new'
  31. match '/ticket_history/:id', :to => 'ticket_overviews#ticket_history'
  32. match '/ticket_customer', :to => 'ticket_overviews#ticket_customer'
  33. match '/ticket_overviews', :to => 'ticket_overviews#show'
  34. match '/activity_stream', :to => 'ticket_overviews#activity_stream'
  35. match '/recent_viewed', :to => 'ticket_overviews#recent_viewed'
  36. match '/ticket_create', :to => 'ticket_overviews#ticket_create'
  37. match '/user_search', :to => 'ticket_overviews#user_search'
  38. # networks
  39. resources :networks, :only => [:create, :show, :index, :update, :destroy]
  40. # getting_started
  41. match '/getting_started', :to => 'getting_started#index'
  42. # sessions
  43. resources :sessions, :only => [:create, :destroy, :show]
  44. match '/signin', :to => 'sessions#create'
  45. match '/signshow', :to => 'sessions#show'
  46. match '/signout', :to => 'sessions#destroy'
  47. # The priority is based upon order of creation:
  48. # first created -> highest priority.
  49. # Sample of regular route:
  50. # match 'products/:id' => 'catalog#view'
  51. # Keep in mind you can assign values other than :controller and :action
  52. # Sample of named route:
  53. # match 'products/:id/purchase' => 'catalog#purchase', :as => :purchase
  54. # This route can be invoked with purchase_url(:id => product.id)
  55. # Sample resource route (maps HTTP verbs to controller actions automatically):
  56. # resources :products
  57. # Sample resource route with options:
  58. # resources :products do
  59. # member do
  60. # get 'short'
  61. # post 'toggle'
  62. # end
  63. #
  64. # collection do
  65. # get 'sold'
  66. # end
  67. # end
  68. # Sample resource route with sub-resources:
  69. # resources :products do
  70. # resources :comments, :sales
  71. # resource :seller
  72. # end
  73. # Sample resource route with more complex sub-resources
  74. # resources :products do
  75. # resources :comments
  76. # resources :sales do
  77. # get 'recent', :on => :collection
  78. # end
  79. # end
  80. # Sample resource route within a namespace:
  81. # namespace :admin do
  82. # # Directs /admin/products/* to Admin::ProductsController
  83. # # (app/controllers/admin/products_controller.rb)
  84. # resources :products
  85. # end
  86. # You can have the root of your site routed with "root"
  87. # just remember to delete public/index.html.
  88. # root :to => 'welcome#index'
  89. # See how all your routes lay out with "rake routes"
  90. # This is a legacy wild controller route that's not recommended for RESTful applications.
  91. # Note: This route will make all actions in every controller accessible via GET requests.
  92. # match ':controller(/:action(/:id))(.:format)'
  93. end