tipi-services
Version:
Node.js library to access wrapping REST API of tipi backend services
17 lines (12 loc) • 361 B
JavaScript
const Service = require('../../../Service')
const Endpoints = require('./Endpoints')
class AutomationsTreeService extends Service {
constructor (baseUrl) {
super()
this.endpoints = Endpoints(baseUrl)
}
async tree () {
return this.sendRequest({ endpoint: this.endpoints.tree })
}
}
module.exports = AutomationsTreeService