tipi-services
Version:
Node.js library to access wrapping REST API of tipi backend services
20 lines (15 loc) • 525 B
JavaScript
const Service = require('../../../Service')
const Endpoints = require('./Endpoints')
class BalancesService extends Service {
constructor (baseUrl) {
super()
this.endpoints = Endpoints(baseUrl)
}
async createdHostelsOverview (query) {
return this.sendRequest({ endpoint: this.endpoints.createdHostelsOverview, query })
}
async liveHostelsOverview (query) {
return this.sendRequest({ endpoint: this.endpoints.liveHostelsOverview, query })
}
}
module.exports = BalancesService