Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Give it a routes object and it spits out html that you can load into your browser.

branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.md

render-routes build status

Give it a routes object and it spits out html that you can load into your browser.

var renderRoutes = require('render-routes');
var express = require('express');
var app = express();

app.get('/routes', function (req, res) {
  res.send(renderRoutes(app.routes));
});

screenshot

Installation

npm install render-routes

API

/**
 * Takes a routes hash and returns html to be displayed in your browser.
 *
 * @name exports
 * @function
 * @param allRoutes {Object} i.e. { get: [ { path: '/foo' }, { path: '/bar' } ], post: [ { '/foo' } ] }
 * @return {String} html rendition of your routes
 */

License

MIT

Something went wrong with that request. Please try again.