Skip to content

Latest commit

 

History

History
29 lines (21 loc) · 735 Bytes

use.md

File metadata and controls

29 lines (21 loc) · 735 Bytes

use handler

🔝 REserve documentation

Enables the use of express middleware functions.

{
  "use": "express-session",
  "options" : {
    "secret": "keyboard cat",
    "resave": false,
    "saveUninitialized": true
  }
}

Example of mapping with the use handler

Features

Important

Supports only middleware functions accepting exactly three parameters (request, response and next) as described here.

Options

option type default description
options object {} Options passed to the middleware factory