From 832f74caab3157753a780b038b671d6d3541eaba Mon Sep 17 00:00:00 2001 From: Rodrigo Nardi Date: Wed, 16 Oct 2024 15:02:06 -0300 Subject: [PATCH] Rack::RewindableInput::Middleware Enabling middleware to be used in rack 3.X --- config.ru | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.ru b/config.ru index f4a6bc9..9dc7288 100644 --- a/config.ru +++ b/config.ru @@ -12,4 +12,6 @@ require 'puma' require './lib/slack_bot_app' require_relative 'config/initializers/active_record_established' +use Rack::RewindableInput::Middleware + run Rack::URLMap.new('/' => SlackRubyBotServer::Api::Middleware.instance, '/github' => Server)