0.1.0 • Published 6 years ago

leajs-redirect v0.1.0

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

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.