Sha256: 658498b20f0587273c4fb41f4e04a5bc9d9acb332119c66015b7795538958796

Contents?: true

Size: 681 Bytes

Versions: 21

Compression:

Stored size: 681 Bytes

Contents

ZuoraConnect::Engine.routes.draw do
  get '/health' => 'static#health'
  post '/initialize_app' => 'static#initialize_app'

  if ENV['PROVISION_USER'].present? && ENV['PROVISION_SECRET'].present?
    post '/provision' => 'static#provision'
    post '/instance/:id/drop' => 'static#instance_drop'
    get '/instance/:id/user' => 'static#instance_user'
  end

  namespace :api do
    namespace :v1 do
      resources :app_instance, :only => [:index], defaults: {format: :json} do
          match "drop", via: [:get, :post], on: :collection
          match "cache_bust", via: [:get, :post], on: :collection
      end
    end
  end

  post "ldap_login" => 'application#ldap_login'
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
zuora_connect-3.1.3 config/routes.rb