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

Api Flipper from Env #223

Merged
merged 5 commits into from
Feb 11, 2017
Merged

Api Flipper from Env #223

merged 5 commits into from
Feb 11, 2017

Conversation

jnunemaker
Copy link
Collaborator

This makes it so that the API can use flipper from the request env instead of having to pass an instance in. One benefit is that the middleware is more simple. It now just reads env["flipper"]. Another benefit is that the flipper instance can be dynamically determined in upstream middleware. This allows the API to be mounted with a prefix or something and a little bit of middleware that sets the flipper instance based on that prefix.

This is all backwards compatible, it just adds a bit more flexiblity for something I have up my sleeve unrelated to this. 😁 @AlexWheeler any thoughts on this either way?

@jnunemaker jnunemaker self-assigned this Feb 8, 2017
I'm so offensive...
@AlexWheeler
Copy link
Collaborator

ah sweet! I definitely think this makes sense and stoked to see what you have coming

Copy link
Collaborator

@AlexWheeler AlexWheeler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎈

@jnunemaker jnunemaker merged commit b212c6c into master Feb 11, 2017
@jnunemaker jnunemaker deleted the api-flipper-from-env branch February 11, 2017 01:00
@jnunemaker jnunemaker added the api label Dec 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants