@studiohyperdrive/express-status
Express status-page solution used at Studio Hyperdrive
Last updated 4 months ago by fabianmeul .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @studiohyperdrive/express-status 
SYNC missed versions from official npm registry.

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);

Current Tags

  • 1.1.0                                ...           latest (4 months ago)

3 Versions

  • 1.1.0                                ...           4 months ago
  • 1.0.1                                ...           5 months ago
  • 1.0.0                                ...           5 months ago

Copyright 2014 - 2016 © taobao.org |