1.0.7 • Published 5 years ago
hapi-routes-endpoint v1.0.7
hapi-routes-endpoint
Lightweight hapi.js plugin that creates an endpoint listing all your app's routes.
Installation
npm install hapi-routes-endpoint
or
yarn add hapi-routes-endpoint
Usage
const hapiRoutesEndpoint = require('hapi-routes-endpoint');
const start = async function() {
const server = Hapi.server();
// Register plugin
await server.register(hapiRoutesEndpoint);
};
TODO:
- Make TS typings work properly
- Make endpoint customizable! (currently hardcoded as '/')
- Make route information customizable (currently in the form of 'GET /foo-endpoint')
- Add circleci