UNPKG

tipi-services

Version:

Node.js library to access wrapping REST API of tipi backend services

17 lines (12 loc) 365 B
const Service = require('../../../Service') const Endpoints = require('./Endpoints') class EkeysService extends Service { constructor (baseUrl) { super() this.endpoints = Endpoints(baseUrl) } async generate (data) { return this.sendRequest({ endpoint: this.endpoints.generate, body: data }) } } module.exports = EkeysService