2020-11-24 15:15:51 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
namespace :jira_connect do
|
|
|
|
# This is so we can have a named route helper for the base URL
|
|
|
|
root to: proc { [404, {}, ['']] }, as: 'base'
|
|
|
|
|
|
|
|
get 'app_descriptor' => 'app_descriptor#show'
|
|
|
|
|
|
|
|
namespace :events do
|
|
|
|
post 'installed'
|
|
|
|
post 'uninstalled'
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :subscriptions, only: [:index, :create, :destroy]
|
2021-10-27 15:23:28 +05:30
|
|
|
resources :branches, only: [:new]
|
2022-11-25 23:54:43 +05:30
|
|
|
resources :public_keys, only: :show
|
2021-11-11 11:23:49 +05:30
|
|
|
|
|
|
|
resources :installations, only: [:index] do
|
|
|
|
collection do
|
|
|
|
put :update
|
|
|
|
end
|
|
|
|
end
|
2022-05-07 20:08:51 +05:30
|
|
|
|
|
|
|
resources :oauth_callbacks, only: [:index]
|
2022-07-23 23:45:48 +05:30
|
|
|
resource :oauth_application_id, only: [:show]
|
2020-11-24 15:15:51 +05:30
|
|
|
end
|