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

allow fully qualified paths in rest definitions #5

Open
heapwolf opened this issue May 17, 2011 · 0 comments
Open

allow fully qualified paths in rest definitions #5

heapwolf opened this issue May 17, 2011 · 0 comments

Comments

@heapwolf
Copy link
Owner

when defining a REST call, it may be desired to override the default host (either implied or as defined in the using method). In there case where the URL provided is "fully qualified", the host, port and protocol etc should not be prepended.

    var porter = Porter({

      users: {
        list: ['get', 'http://api.twitter.com/v1/feeds/timeline/:id'],
        update: ['post', '/api/apps/:username']
      }

    });
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

1 participant