diff --git a/lib/pact_broker/app.rb b/lib/pact_broker/app.rb index e7e84cc9d..b5a17b6e0 100644 --- a/lib/pact_broker/app.rb +++ b/lib/pact_broker/app.rb @@ -213,7 +213,7 @@ def build_api builder.use @make_it_later_api_auth builder.use Rack::PactBroker::Convert404ToHal builder.use Rack::PactBroker::DatabaseTransaction, configuration.database_connection - builder.run Rack::Cascade.new(api_apps) + builder.run Rack::Cascade.new(api_apps, [404]) builder end @@ -244,7 +244,7 @@ def running_app prepare_app apps = @cascade_apps @app_builder.map "/" do - run Rack::Cascade.new(apps) + run Rack::Cascade.new(apps, [404]) end @app_builder end