Closed mikeheft closed 3 years ago
This is because you're using multiple versioning strategies at the same time. The routes prefixed with recipe_
are from your header versioning strategy, and the routes prefixed with api_v1_recipe_
are from your path versioning strategy.
I recently added the gem to a project I'm working on in my spare time. Once I added the
api_version
to my routes file, it created duplicate routes.Routes file:
I'm not really sure what's happened here. I use this gem at work, and in other projects. I'm not sure if it's because I added it to an existing project and there's something, somewhere that needs to be removed. I would like to have the 'version' in the path, but not the extra routes that this is producing. I tried to remove the path, but the duplicated routes are still present.
Also, previously I was not able to successfully make requests without adding the headers. For some reason, now I am.