1.0.2 • Published 7 years ago

express-hal-browser v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

express-HAL-browser

express-HAL-browser is an express router middleware which serves the HAL-browser project.

Installation

npm install express-hal-browser --save

Usage

Import 'express-hal-browser' and use at the endpoint of your choice.

// server.js
import express from 'express';
import halBrowser from 'express-hal-browser';

const app = express();

app.use('/hal', halBrowser());

// ...

express-HAL-browser assumes your API entry point is at root (/) by default, but this can be overridden by passing an options object with an AEP key:

app.use('/api', (req, res) => {
  // ...
});

app.use('/hal', halBrowser({ AEP: '/api' }));

HAL-browser

View HAL-browser README