Skip to content

feat(proxy): allow contextless proxy configuration#70

Merged
chimurai merged 2 commits intomasterfrom
contextless-configuration
Apr 18, 2016
Merged

feat(proxy): allow contextless proxy configuration#70
chimurai merged 2 commits intomasterfrom
contextless-configuration

Conversation

@chimurai
Copy link
Owner

Create proxy without context parameter; using server's path config instead:

app.use('/api', proxy('http://localhost:3000', {changeOrigin:true}));
app.use('/api', proxy({target: 'http://localhost:3000', changeOrigin:true}));

@coveralls
Copy link

Coverage Status

Coverage increased (+0.01%) to 99.313% when pulling 985e867 on contextless-configuration into aa89e1f on master.

@chimurai chimurai force-pushed the contextless-configuration branch from 2e7f5ab to 331c8fa Compare April 18, 2016 19:46
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 99.31% when pulling 331c8fa on contextless-configuration into aa89e1f on master.

@chimurai chimurai merged commit 1199174 into master Apr 18, 2016
@chimurai chimurai deleted the contextless-configuration branch April 18, 2016 19:58
@coveralls
Copy link

Coverage Status

Coverage increased (+0.007%) to 99.31% when pulling 331c8fa on contextless-configuration into aa89e1f on master.

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

Successfully merging this pull request may close these issues.

2 participants