gitlab-org--gitlab-foss/config/routes/jira_connect.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

26 lines
571 B
Ruby
Raw Normal View History

# 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'
get :users, to: 'users#show'
namespace :events do
post 'installed'
post 'uninstalled'
end
resources :subscriptions, only: [:index, :create, :destroy]
resources :branches, only: [:new]
resources :installations, only: [:index] do
collection do
put :update
end
end
resources :oauth_callbacks, only: [:index]
end