Sha256: 3472d2716fde0a9a5ea648934762a5e28d243b174545ae97710c589a60c6d6d6

Contents?: true

Size: 1.12 KB

Versions: 98

Compression:

Stored size: 1.12 KB

Contents

Rails.application.routes.draw do
  use_doorkeeper

  # See `config/routes.rb` in the starter repository for details.
  collection_actions = [:index, :new, :create] # standard:disable Lint/UselessAssignment
  extending = {only: []}

  namespace :account do
    shallow do
      resources :teams, extending do
        namespace :platform do
          resources :applications do
            resources :access_tokens
          end
        end
      end
    end
  end

  get "/testing/provision", to: "account/platform/applications#provision"

  namespace :api do
    match "*version/openapi.yaml" => "open_api#index", :via => :get

    BulletTrain::Api.all_versions.each do |version|
      namespace version do
        shallow do
          resources :users
          resources :teams do
            resources :invitations do
              member do
                post :resend
              end
            end
            resources :memberships
            namespace :platform do
              resources :applications do
                resources :access_tokens
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
bullet_train-api-1.6.12 config/routes.rb
bullet_train-api-1.6.11 config/routes.rb
bullet_train-api-1.6.10 config/routes.rb
bullet_train-api-1.6.9 config/routes.rb
bullet_train-api-1.6.8 config/routes.rb
bullet_train-api-1.6.7 config/routes.rb
bullet_train-api-1.6.6 config/routes.rb
bullet_train-api-1.6.5 config/routes.rb
bullet_train-api-1.6.4 config/routes.rb
bullet_train-api-1.6.3 config/routes.rb
bullet_train-api-1.6.2 config/routes.rb
bullet_train-api-1.6.1 config/routes.rb
bullet_train-api-1.6.0 config/routes.rb
bullet_train-api-1.5.2 config/routes.rb
bullet_train-api-1.5.1 config/routes.rb
bullet_train-api-1.5.0 config/routes.rb
bullet_train-api-1.4.11 config/routes.rb
bullet_train-api-1.4.10 config/routes.rb
bullet_train-api-1.4.9 config/routes.rb
bullet_train-api-1.4.8 config/routes.rb