use
handlerEnables the use of express middleware functions.
{
"use": "express-session",
"options" : {
"secret": "keyboard cat",
"resave": false,
"saveUninitialized": true
}
}
Example of mapping with the
use
handler
[!IMPORTANT] Supports only middleware functions accepting exactly three parameters (
request
,response
andnext
) as described here.
option | type | default | description |
---|---|---|---|
options |
object |
{} |
Options passed to the middleware factory |