Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Including URLs instead of excluding? #24

Open
magiruuvelvet opened this issue Jul 26, 2018 · 3 comments
Open

Including URLs instead of excluding? #24

magiruuvelvet opened this issue Jul 26, 2018 · 3 comments

Comments

@magiruuvelvet
Copy link

magiruuvelvet commented Jul 26, 2018

The readme says that you can exclude specific URLs from being transformed. I'm wondering now if it would be possible to include specific URLs instead. I have a Rails project where I'm adding an API in its own namespace. As I'm not want to break the entire application, I'd like to just include the API namespace and keep the rest of the responses untouched.

EDIT: The method with the custom HTTP header is a bit tricky for the use case of this API as adding custom request headers all the time is a bit annoying (library issue).

@efatsi
Copy link
Contributor

efatsi commented Jul 31, 2018

Great suggestion @magiruuvelvet, I'm no longer actively writing contributions to this gem, but would be happy to review a PR if you wanted to throw something together.

@lmiller1990
Copy link

I also had this thought. Would be nice to see this! I'd be interested in taking a look if noone else is.

@efatsi
Copy link
Contributor

efatsi commented Sep 13, 2018

that would be great @lmiller1990!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants