Sha256: c879493ff505bc2f7c7352c6b8dfd819d5b3a839d88502da3849a01eb813cb88

Contents?: true

Size: 446 Bytes

Versions: 4

Compression:

Stored size: 446 Bytes

Contents

Rails.application.routes.draw do
  current_api_routes = lambda do
    resources :clients, only: [] do
      resources :tokens, only: [:create]
    end

    post 'callbacks/:service' => 'callbacks#create'
  end

  scope module: "apress", constraints: {domain: :current} do
    namespace :api do
      scope module: :v1, &current_api_routes
      namespace :v1, &current_api_routes
      resource :deprecated_version, only: :show
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
apress-api-1.24.0 config/routes.rb
apress-api-1.23.0 config/routes.rb
apress-api-1.22.1 config/routes.rb
apress-api-1.22.0 config/routes.rb