Open bertspaan opened 10 years ago
Grape, by default, allows URLs to end with a file extension. This does not work well together with URL patterns ending with a regex pattern:
resource '/:cdk_id', requirements: { cdk_id: ::Helpers.alphanumeric_regex } do ... end
Or, maybe we should not allow file extension URLs and always use the format parameter (?format=json) or the Content-Type request header.
?format=json
We will not allow file extensions. Ugly anyway..
Grape, by default, allows URLs to end with a file extension. This does not work well together with URL patterns ending with a regex pattern:
Or, maybe we should not allow file extension URLs and always use the format parameter (
?format=json
) or the Content-Type request header.