HTTP proxy passthrough
HydraRouter allows you to specify routes to non-hydra services. Essentially this allows external clients to make API requests through hydra to backend servers.
To enable this functionality, simply define externals routes under theexternalRoutes
key in the configuration file. TheexternalRoutes
key consists of an object of urls and their array of routes.
:
'externalRoutes': {
'https://someotherservice.com': [
'[post]/api/v2/token/create',
'[get]/api/v2/user/self.json'
]
},
: