hapi-trailing-slash
handles trailing slash issues in hapi
Last updated a year ago by orthagonal1 .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install hapi-trailing-slash 
SYNC missed versions from official npm registry.

hapi-trailing-slash # Build Status

Handles common trailing slash issues for incoming URLs

###register like so:###

var module = require("hapi-trailing-slash");
.
.
.
server.register({
  register: module,
  options: {
    method: 'remove',
    verbose: true
  }
});

###options are:###

  • 'append' -- detects incoming requests that have no trailing slash, adds one, and redirects to the new url
  • 'remove' -- detects incoming requests with a trailing slash, removes it, and redirects to the new url

Current Tags

  • 3.1.0                                ...           latest (a year ago)

12 Versions

  • 3.1.0                                ...           a year ago
  • 3.0.1                                ...           2 years ago
  • 3.0.0                                ...           3 years ago
  • 2.2.0                                ...           3 years ago
  • 2.1.1                                ...           3 years ago
  • 2.1.0                                ...           3 years ago
  • 2.0.0                                ...           3 years ago
  • 1.1.0                                ...           3 years ago
  • 1.0.0                                ...           3 years ago
  • 0.0.3                                ...           4 years ago
  • 0.0.2                                ...           4 years ago
  • 0.0.1                                ...           4 years ago

Copyright 2014 - 2016 © taobao.org |