Skip to content

breejs/api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

e1ec11d · Aug 2, 2022

History

48 Commits
Jun 4, 2022
Jan 26, 2022
Aug 2, 2022
Jun 8, 2022
Aug 20, 2021
Aug 20, 2021
Jun 25, 2022
Aug 2, 2022
Jul 29, 2021
Aug 20, 2021
Aug 20, 2021
Aug 6, 2021
Jul 29, 2021
Jul 29, 2021
Jun 5, 2022
Jul 29, 2021
Jul 29, 2021
Jun 8, 2022
Jun 8, 2022
Jun 5, 2022
Aug 2, 2022
Jul 29, 2021
Aug 20, 2021
Aug 2, 2022
Jun 21, 2022

Repository files navigation

@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