According to a middleware spec, ApiVersions::Middleware should add a default vendor accept to a nil Accept header.
But, in my opinion, it adds default vendor only if request path contains prefix path like /api. Otherwise, It adds default vendor when request path is / and Accept header is */*.
What do you think of this?
Thank you for sharing this project. 👍
According to a middleware spec,
ApiVersions::Middlewareshould add a default vendor accept to a nil Accept header.But, in my opinion, it adds default vendor only if request path contains prefix path like
/api. Otherwise, It adds default vendor when request path is/and Accept header is*/*.What do you think of this?
Thank you for sharing this project. 👍