Mixin-Base-URL

Build Status codecov npm version downloads

:fish: Base URL Mixin for Barktler

Install

yarn add @barktler/mixin-base-url
# Or
npm install @barktler/mixin-base-url --save

Usage

import { createBaseURLMixin } from "@barktler/mixin-base-url";
import { YourAPI } from "somewhere";

const api: YourAPI = new YourAPI();
api.useMixin(createBaseURLMixin({
    baseURL: 'https://api.example.com',
}));

Documents

See Barktler Documents.