UNPKG

@onfleet/node-onfleet

Version:

Onfleet's Node.js API Wrapper Package

27 lines (24 loc) 547 B
import Resource from '../Resource.js'; /** * @desc this class holds the CRUD methods allowed on the Destinations endpoint */ export default class Destinations extends Resource { constructor(api) { super(api); this.defineTimeout(); this.endpoints({ create: { path: '/destinations', method: 'POST', }, get: { path: '/destinations/:destinationId', method: 'GET', }, matchMetadata: { path: '/destinations/metadata', method: 'POST', }, }); } }