express-hal-browser
v1.0.2
Published
Express wrapper for hal+json media type API browser
Downloads
34
Readme
express-HAL-browser
express-HAL-browser is an express router middleware which serves the HAL-browser project.
Installation
npm install express-hal-browser --saveUsage
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' }));