🐟 Base URL Mixin for Barktler
yarn add @barktler/mixin-base-url
# Or
npm install @barktler/mixin-base-url --save
import { createBaseURLMixin } from "@barktler/mixin-base-url";
import { YourAPI } from "somewhere";
const api: YourAPI = new YourAPI();
api.useMixin(createBaseURLMixin({
baseURL: 'https://api.example.com',
}));
See Barktler Documents.