examples/app.rb in cotton-tail-0.5.0 vs examples/app.rb in cotton-tail-0.6.0

- old
+ new

@@ -23,9 +23,14 @@ handle 'inspect.message' do |env, request, response| puts env: env puts request: request puts response: response end + + handle 'send.*:gift.to.*:name' do |_env, request, _response| + gift, name = request.route_params.values_at('gift', 'name') + puts "#{gift} sent to #{name}!" + end end queue 'require_ack_queue', exclusive: true, manual_ack: true do handle 'get.acked' do |_env, request, _response| puts "acking with #{request.delivery_tag}"