Skip to content

Support shorthand proxy configuration #14

Closed
@chimurai

Description

@chimurai

Support shorthand proxy configuration.

Set target = http://www.example.org and proxy everything:

var proxy = proxyMiddleware('http://www.example.org');
// equals:  proxyMiddleware('/', {target: 'http://www.example.org'});

Set target = http://www.example.org and context = '/api':

var proxy = proxyMiddleware('http://www.example.org/api');
// equals:  proxyMiddleware('/api', {target: 'http://www.example.org'});

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions