2.1.0 • Published 2 years ago

@breejs/api v2.1.0

Weekly downloads
-
License
Unlicensed
Repository
github
Last release
2 years ago

@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

OptionTypeDescription
portNumberThe port the API will listen on. Default: 62893
jwtObjectConfigurations for JWT. Only option is secret which will be the secret used to verify JWT.
sseObjectConfigurations for SSE. See koa-sse for list of options.

API

Check out the API Docs.

Contributors

License

MIT © Nick Baugh