1.0.7 • Published 6 years ago

hapi-routes-endpoint v1.0.7

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

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
1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago