npm.io
0.1.0 • Published 8 years ago

leajs-redirect

Licence
MIT
Version
0.1.0
Deps
0
Size
2 kB
Vulns
0
Weekly
0

leajs-redirect

Plugin of leajs.

Manages redirects.

leajs.config

module.exports = {

  // Lookup to translate a url into a redirect. Will bypass other plugins
  // $item (Object) Redirect Object
  // $item.statusCode (Number) Status code for the http response
  // $item.head (Object) Headers for the http response
  // $item.body (String) Body for the http response
  redirect: {}, // Object

  // …

}

License

Copyright (c) 2018 Paul Pflugradt Licensed under the MIT license.