j-balance
v0.1.9
Published
```js const getClient = require('./example/eureka');
Downloads
3
Readme
j-balancer
const getClient = require('./example/eureka');
getClient({
discovery: {
url: '/eureka/v1/apps',
hosts: ['http://localhost:7777']
}
})
.getService('PROJECTS-API')
.get('/projects')
.then((res) => {
console.log(`RESULT`);
console.log(res.response);
})
.catch((err) => {
console.log(`ERROR`);
console.log(err);
});