additionals/config/routes.rb

45 lines
1.0 KiB
Ruby
Raw Normal View History

# frozen_string_literal: true
2020-11-29 15:17:02 +03:00
Rails.application.routes.draw do
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'
2020-07-27 11:49:23 +03:00
end
2020-11-29 15:17:02 +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
2020-11-29 15:17:02 +03:00
resources :projects, only: [] do
resources :dashboards do
member do
post :update_layout_setting
post :add_block
post :remove_block
post :order_blocks
end
end
resource :dashboard_async_blocks, only: %i[show create]
end
resource :additionals_macros, only: :show, path: '/help/macros'
2019-12-30 18:09:04 +03:00
2020-11-29 15:17:02 +03:00
resources :auto_completes, only: [] do
collection do
get :fontawesome
get :issue_assignee
get :assignee
get :authors
get :grouped_principals
get :grouped_users
2020-11-29 15:17:02 +03:00
end
2020-03-09 21:57:22 +03:00
end
end