@breejs/api

2.1.0 • Public • Published

@breejs/api

build status code coverage code style styled with prettier made with lad

An API for Bree.

Table of Contents

Install

npm:

npm install @breejs/api

yarn:

yarn add @breejs/api

Usage

Extend bree with the plugin:

Bree.extend(require('@breejs/api').plugin);

const bree = new Bree(config);

The API will start automatically when the Bree constructor is called.

Options

Option Type Description
port Number The port the API will listen on. Default: 62893
jwt Object Configurations for JWT. Only option is secret which will be the secret used to verify JWT.
sse Object Configurations for SSE. See koa-sse for list of options.

API

Check out the API Docs.

Contributors

License

MIT © Nick Baugh

Readme

Keywords

Package Sidebar

Install

npm i @breejs/api

Weekly Downloads

11

Version

2.1.0

License

Unlicensed

Unpacked Size

49 kB

Total Files

101

Last publish

Collaborators

  • titanism
  • niftylettuce
  • gargol
  • daniellockyer
  • shadowgate15