Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 544 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 544 Bytes

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.