lib/routemaster/drain/cache_busting.rb in routemaster-drain-2.5.0 vs lib/routemaster/drain/cache_busting.rb in routemaster-drain-2.5.1
- old
+ new
@@ -1,8 +1,9 @@
require 'routemaster/middleware/root_post_only'
require 'routemaster/middleware/authenticate'
require 'routemaster/middleware/parse'
+require 'routemaster/middleware/siphon'
require 'routemaster/middleware/expire_cache'
require 'routemaster/middleware/payload_filter'
require 'routemaster/middleware/filter'
require 'routemaster/drain/terminator'
require 'rack/builder'
@@ -23,9 +24,10 @@
@terminator = terminator = Terminator.new
@app = ::Rack::Builder.new do
use Middleware::RootPostOnly
use Middleware::Authenticate, options
use Middleware::Parse
+ use Middleware::Siphon, options
use Middleware::Filter, { filter: Routemaster::Middleware::PayloadFilter.new }.merge(options)
use Middleware::ExpireCache
run terminator
end
end