2012-05-18 13:54:48 +00:00
|
|
|
module ExtraRoutes
|
|
|
|
def add(map)
|
|
|
|
|
|
|
|
# tickets
|
2012-09-13 01:14:13 +00:00
|
|
|
map.resources :channels, :only => [:create, :show, :index, :update, :destroy]
|
|
|
|
map.resources :ticket_articles, :only => [:create, :show, :index, :update]
|
|
|
|
map.resources :ticket_priorities, :only => [:create, :show, :index, :update]
|
|
|
|
map.resources :ticket_states, :only => [:create, :show, :index, :update]
|
|
|
|
map.resources :tickets, :only => [:create, :show, :index, :update]
|
|
|
|
map.match '/ticket_full/:id', :to => 'ticket_overviews#ticket_full'
|
|
|
|
map.match '/ticket_attachment/:ticket_id/:article_id/:id', :to => 'ticket_overviews#ticket_attachment'
|
|
|
|
map.match '/ticket_attachment_new', :to => 'ticket_overviews#ticket_attachment_new'
|
|
|
|
map.match '/ticket_article_plain/:id', :to => 'ticket_overviews#ticket_article_plain'
|
|
|
|
map.match '/ticket_history/:id', :to => 'ticket_overviews#ticket_history'
|
|
|
|
map.match '/ticket_customer', :to => 'ticket_overviews#ticket_customer'
|
|
|
|
map.match '/ticket_overviews', :to => 'ticket_overviews#show'
|
|
|
|
map.match '/ticket_create', :to => 'ticket_overviews#ticket_create'
|
|
|
|
map.match '/user_search', :to => 'ticket_overviews#user_search'
|
2012-05-18 13:54:48 +00:00
|
|
|
|
2012-07-04 21:36:39 +00:00
|
|
|
map.match '/ticket_merge/:slave_ticket_id/:master_ticket_number', :to => 'ticket_overviews#ticket_merge'
|
|
|
|
|
2012-09-13 01:14:13 +00:00
|
|
|
map.match '/activity_stream', :to => 'activity#activity_stream'
|
|
|
|
map.match '/recent_viewed', :to => 'recent_viewed#recent_viewed'
|
2012-07-19 21:31:57 +00:00
|
|
|
|
2012-05-18 13:54:48 +00:00
|
|
|
end
|
|
|
|
module_function :add
|
|
|
|
end
|