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