use handlerEnables the use of express middleware functions.
{
"use": "express-session",
"options" : {
"secret": "keyboard cat",
"resave": false,
"saveUninitialized": true
}
}
Example of mapping with the
usehandler withexpress-session
{
"use": "cors",
"options" : {
"origin": "http://example.com",
"methods": "GET,POST"
}
}
Example of mapping with the
usehandler withcors
[!IMPORTANT] Supports only middleware functions accepting exactly three parameters (
request,responseandnext) as described here.
| option | type | default | description |
|---|---|---|---|
options |
object |
{} |
Options passed to the middleware factory |