UNPKG

@parkingboss/api

Version:
23 lines (22 loc) 512 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.apiBase = void 0; function apiBase() { const link = new URL("https://api.propertyboss.io/v2"); return { subscribe(fn) { fn(link.href); return () => { }; }, set(val) { link.href = val; }, get() { return link.href; }, update(fn) { link.href = fn(link.href); }, }; } exports.apiBase = apiBase;