Skip to content
This repository has been archived by the owner on Mar 16, 2022. It is now read-only.

Transform request per route #5

Closed
h2non opened this issue Jun 21, 2015 · 2 comments
Closed

Transform request per route #5

h2non opened this issue Jun 21, 2015 · 2 comments

Comments

@h2non
Copy link
Owner

h2non commented Jun 21, 2015

rocky
  .get('/users/:id')
  .toPath('/profile/:id')
  .headers({
     'X-API-Version': '1.0'
  })
  .forward('http://new.server')
@h2non
Copy link
Owner Author

h2non commented Jun 22, 2015

By default it will be available via route middleware, but it could be useful adding some helper methods

@h2non
Copy link
Owner Author

h2non commented Jun 23, 2015

Deprecated. Use route level middleware instead

@h2non h2non closed this as completed Jun 23, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant