Sha256: 94152acb65d2241b6b5560aaea78a6ed0ad72628365c34824b08a1216c35dc8c
Contents?: true
Size: 1.12 KB
Versions: 4
Compression:
Stored size: 1.12 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 "/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? } post "/govpay/v1/payments/:payment_id/refunds", to: "govpay#create_refund", as: "govpay_create_refund", constraints: ->(_request) { DefraRubyMocks.configuration.enabled? } get "/govpay/v1/payments/:payment_id/refunds/:refund_id", to: "govpay#refund_details", as: "govpay_refund_details", constraints: ->(_request) { DefraRubyMocks.configuration.enabled? } end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
defra_ruby_mocks-4.0.0 | config/routes.rb |
defra_ruby_mocks-2.4.2 | config/routes.rb |
defra_ruby_mocks-2.4.1 | config/routes.rb |
defra_ruby_mocks-2.4.0 | config/routes.rb |