@studiohyperdrive/express-status
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

Express Status

Express status-page solution used at Studio Hyperdrive

Table of contents

Getting Started

Install the package

# NPM
npm install --save @studiohyperdrive/express-status

# Yarn
yarn add --save @studiohyperdrive/express-status

Usage

import { ExpressStatusRouter } from '@studiohyperdrive/express-status';

...
// Exposes '/status' in the router.
app.use(ExpressStatusRouter);

ExpressStatusRouter

An Express Router that exposes GET /status.

Usage:

import { ExpressStatusRouter } from '@studiohyperdrive/express-status';

...

app.use(ExpressStatusRouter);

ExpressStatusController

The controller that takes care of handling the route callback. Using the controller gives you the flexibility of adding your own endpoint.

Usage:

import { ExpressStatusController } from '@studiohyperdrive/express-status';

...

const expressStatusController = new ExpressStatusController();

router.route('/status').get(expressStatusController.get);

Readme

Keywords

Package Sidebar

Install

npm i @studiohyperdrive/express-status

Weekly Downloads

7

Version

2.0.1

License

ISC

Unpacked Size

8.54 kB

Total Files

10

Last publish

Collaborators

  • npieter
  • wouterheirstrate
  • ekincia
  • bertyhell
  • shd-developer
  • ian-emsens-shd
  • jeroenvalcke
  • tom-odb
  • brilniels
  • thomasbormans
  • sanderh
  • laurenspeeters
  • rednas
  • denisvalcke
  • ibenvandeveire