Sha256: 91d41ccda09ea1e4fb8a4360fd2db57b32695c521873277ec5897b60289e1569

Contents?: true

Size: 1.08 KB

Versions: 29

Compression:

Stored size: 1.08 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

  if ENV["TESTING_PROVISION_KEY"].present?
    get "/testing/provision", to: "account/platform/applications#provision"
  end

  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
            resources :memberships
            namespace :platform do
              resources :applications do
                resources :access_tokens
              end
            end
          end
        end
      end
    end
  end
end

Version data entries

29 entries across 29 versions & 1 rubygems

Version Path
bullet_train-api-1.2.8 config/routes.rb
bullet_train-api-1.2.7 config/routes.rb
bullet_train-api-1.2.6 config/routes.rb
bullet_train-api-1.2.5 config/routes.rb
bullet_train-api-1.2.4 config/routes.rb
bullet_train-api-1.2.3 config/routes.rb
bullet_train-api-1.2.2 config/routes.rb
bullet_train-api-1.2.1 config/routes.rb
bullet_train-api-1.2.0 config/routes.rb