Closed
Description
The following isn't working when my route has a trailing parameter like this
put '/test/ilovetests/updatemylove/:id'
if I do a put to '/test/ilovetests/updatemylove/' the below code isn't hit.
module OurAPI
class NotFound < Grape::API
version 'v3.0', using: :path
format :json
route :any, '*path' do
error!( { error: "Not Found." }, 404 )
end
end
end
I've tried loading this class in the array sent to Rack::Cascade.new at both the beginning and at the end (like you should and the example in the READme insists on) and it's not hit whenever I throw a bogus route its way.
This started once we upgraded grape from 0.13 to 0.16 (latest) and is only happening on routes that have trailing parameters.
I noticed that rack-mount was dropped between 0.13 and 0.16 in favor of mustermann. Could that be the source of our issue?