@ -11,6 +11,10 @@ const endpoints = [
];
module.exports = endpoints.reduce((onionoo, endpoint) => {
onionoo[endpoint] = args => rp({ uri: `${baseUrl}${endpoint}`, qs: args });
onionoo[endpoint] = args => rp({
uri: `${baseUrl}${endpoint}`,
qs: args,
json: true
});
return onionoo;
}, {});