Sha256: f58b8a4f0165e007caed92f2eed4b936402b84fc0b397cd51a576cbcfedd2f32

Contents?: true

Size: 1.09 KB

Versions: 2

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

DefraRubyMocks::Engine.routes.draw do
  get "/company/:id",
      to: "company#show",
      as: "company",
      constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }

  get "/company/:id/officers",
      to: "company#officers",
      as: "company_officers",
      constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }

  post "/worldpay/payments-service",
       to: "worldpay#payments_service",
       as: "worldpay_payments_service",
       constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }

  get "/worldpay/dispatcher",
      to: "worldpay#dispatcher",
      as: "worldpay_dispatcher",
      constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }

  post "/govpay/v1/payments",
       to: "govpay#create_payment",
       as: "govpay_create_payment",
       constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }

  get "/govpay/v1/payments/:payment_id",
      to: "govpay#payment_details",
      as: "govpay_payment_details",
      constraints: ->(_request) { DefraRubyMocks.configuration.enabled? }
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
defra_ruby_mocks-2.3.3 config/routes.rb
defra_ruby_mocks-2.3.2 config/routes.rb