UNPKG

@gang-js/core

Version:

a state sharing algorithm

12 lines (11 loc) 221 B
/** * Small wrapper for HTTP functions */ export class GangHttp { constructor(rootPath) { this.rootPath = rootPath; } fetch(url, init) { return fetch(`${this.rootPath}${url}`, init); } }