lib/hyperdrive/server.rb in hyperdrive-0.0.13 vs lib/hyperdrive/server.rb in hyperdrive-0.0.14
- old
+ new
@@ -26,9 +26,10 @@
hyperdrive.resources.each do |key, resource|
map resource.endpoint do
use Hyperdrive::Middleware::Resource, resource
use Hyperdrive::Middleware::RequestMethod
+ use Hyperdrive::Middleware::ParseJSONBody
use Hyperdrive::Middleware::SanitizeParams
use Hyperdrive::Middleware::Pagination
use Hyperdrive::Middleware::RequiredParams
use Hyperdrive::Middleware::CORS, hyperdrive.config[:cors]
use Hyperdrive::Middleware::ContentNegotiation