UNPKG

@fleetbase/sdk

Version:
18 lines (15 loc) 483 B
import { register } from './registry.js'; export default class Adapter { /** * Creates a configured base adapter for Fleetbase. * * @param {Object} config Configuration options for adapter */ constructor(config = {}) { this.version = config.version || 'v1'; this.host = config.host || null; this.namespace = config.namespace || null; this.headers = config.headers || {}; } } register('adapter', 'Adapter', Adapter);