-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Labels
Description
Since Rack::Mount::RouteSet is used for routing before any middleware is run, if a route does not exist RouteSet generates the 404, and it never passes through a formatter.
This behavior might be undesirable if the client expects all responses to follow the correct format.
As a temporary hack, I running a middleware before the subclass of Grape::API, that invokes methods from Grape::Middleware::Error if a 404 is returned.