mutate opt with options arg

This commit is contained in:
srgooglo 2021-07-22 15:55:05 +02:00
parent fb496a9aab
commit 3380d83027

View File

@ -22,7 +22,7 @@ class Bridge {
}
function generateDispatcher(bridge, method, route, getContext) {
return async function (body, query, ...context) {
return async function (body, query, options) {
let obj = Object()
let opt = {
parseData: true,
@ -30,7 +30,7 @@ function generateDispatcher(bridge, method, route, getContext) {
url: route,
data: body,
params: query,
...context
...options
}
if (typeof getContext === "function") {