Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

hapi-routes-endpoint

Lightweight hapi.js plugin that creates an endpoint listing all your app's routes.

hapi, routes

readme

hapi-routes-endpoint

npm

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