2020-09-01 08:11:01 -04:00
|
|
|
# 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'
|
2020-10-16 02:08:48 -04:00
|
|
|
get :users, to: 'users#show'
|
2020-09-01 08:11:01 -04:00
|
|
|
|
|
|
|
namespace :events do
|
|
|
|
post 'installed'
|
|
|
|
post 'uninstalled'
|
|
|
|
end
|
|
|
|
|
|
|
|
resources :subscriptions, only: [:index, :create, :destroy]
|
2021-07-23 08:09:05 -04:00
|
|
|
resources :branches, only: [:new]
|
2022-09-28 11:09:17 -04:00
|
|
|
resources :public_keys, only: :show
|
2021-08-20 05:09:16 -04:00
|
|
|
|
|
|
|
resources :installations, only: [:index] do
|
|
|
|
collection do
|
|
|
|
put :update
|
|
|
|
end
|
|
|
|
end
|
2022-03-10 22:08:14 -05:00
|
|
|
|
|
|
|
resources :oauth_callbacks, only: [:index]
|
2022-05-30 14:08:57 -04:00
|
|
|
resource :oauth_application_id, only: [:show]
|
2020-09-01 08:11:01 -04:00
|
|
|
end
|