Skip to content

Commit

Permalink
feat(pacts for verification): allow API to be disabled by setting PAC…
Browse files Browse the repository at this point in the history
…T_BROKER_FEATURES=disable_pacts_for_verification
  • Loading branch information
bethesque committed Sep 25, 2020
1 parent 61370d1 commit bab116b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions lib/pact_broker/api/resources/index.rb
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,11 @@ def links
}]
}

if PactBroker.feature_enabled?(:disable_pacts_for_verification)
links_hash.delete('pb:provider-pacts-for-verification')
links_hash.delete('beta:provider-pacts-for-verification')
end

links_hash
end

Expand Down

0 comments on commit bab116b

Please sign in to comment.