import fetch from 'node-fetch' ; import SplitOut from './splitout' ; export default class DCBurnerAccounts extends SplitOut { async postData ( url = '' ) { const response = await fetch ( url , { method : 'POST' , headers : { 'cache-control' : 'no-cache' } , } ) ; if ( response . ok ) { return response . json ( ) ; } else { throw await response . text ( ) ; } } async create ( url ) { return await this . postData ( url ) ; } }