lib/hanami/middleware/body_parser.rb in hanami-router-2.0.0.alpha3 vs lib/hanami/middleware/body_parser.rb in hanami-router-2.0.0.alpha4

- old
+ new

@@ -1,16 +1,18 @@ # frozen_string_literal: true require "hanami/router/params" require "hanami/middleware/error" -require_relative "body_parser/class_interface" module Hanami module Middleware # @since 1.3.0 # @api private class BodyParser + require_relative "body_parser/class_interface" + require_relative "body_parser/parser" + # @since 1.3.0 # @api private CONTENT_TYPE = "CONTENT_TYPE" # @since 1.3.0 @@ -70,10 +72,10 @@ # @api private def _symbolize(body) if body.is_a?(::Hash) Router::Params.deep_symbolize(body) else - { FALLBACK_KEY => body } + {FALLBACK_KEY => body} end end # @api private def _parse(env, body)