1.0.0 • Published 4 years ago

@barktler/mixin-base-url v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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.

1.0.0

4 years ago