additionals/config/routes.rb

42 lines
1009 B
Ruby
Raw Normal View History

# Plugin's routes
# See: http://guides.rubyonrails.org/routing.html
# Don't create routes for repositories resources with only: []
2018-02-17 18:14:19 +03:00
# do not override Redmine's routes.
resources :issues, only: [] do
resource 'assign_to_me', only: %i[update], controller: 'additionals_assign_to_me'
resource 'change_status', only: %i[update], controller: 'additionals_change_status'
end
2018-09-12 17:04:39 +03:00
2020-07-28 19:15:13 +03:00
resource :dashboard_async_blocks, only: %i[show create]
2020-07-27 11:49:23 +03:00
resources :dashboards do
member do
post :update_layout_setting
post :add_block
post :remove_block
post :order_blocks
end
end
resources :projects, only: [] do
resources :dashboards do
member do
post :update_layout_setting
post :add_block
post :remove_block
post :order_blocks
end
end
2020-07-28 19:15:13 +03:00
resource :dashboard_async_blocks, only: %i[show create]
2020-07-27 11:49:23 +03:00
end
resource :additionals_macros, only: :show, path: '/help/macros'
2019-12-30 18:09:04 +03:00
2020-03-09 21:57:22 +03:00
resources :auto_completes, only: [] do
collection do
get :issue_assignee
get :fontawesome
end
end