diff --git a/JavaScript/b-transport/transport/http.js b/JavaScript/b-transport/transport/http.js index fda7506..80851f1 100644 --- a/JavaScript/b-transport/transport/http.js +++ b/JavaScript/b-transport/transport/http.js @@ -32,7 +32,7 @@ module.exports = (routing, port, console) => { if (!handler) return res.end('"Not found"'); const { args } = await receiveArgs(req); console.log(`${socket.remoteAddress} ${method} ${url}`); - const result = await handler(args); + const result = await handler(...args); res.end(JSON.stringify(result)); }).listen(port); diff --git a/JavaScript/c-commonjs/transport/http.js b/JavaScript/c-commonjs/transport/http.js index fda7506..80851f1 100644 --- a/JavaScript/c-commonjs/transport/http.js +++ b/JavaScript/c-commonjs/transport/http.js @@ -32,7 +32,7 @@ module.exports = (routing, port, console) => { if (!handler) return res.end('"Not found"'); const { args } = await receiveArgs(req); console.log(`${socket.remoteAddress} ${method} ${url}`); - const result = await handler(args); + const result = await handler(...args); res.end(JSON.stringify(result)); }).listen(port); diff --git a/JavaScript/d-messenger/transport/http.js b/JavaScript/d-messenger/transport/http.js index 3f318ee..96f96f3 100644 --- a/JavaScript/d-messenger/transport/http.js +++ b/JavaScript/d-messenger/transport/http.js @@ -33,7 +33,7 @@ module.exports = (routing, port, console) => { if (!handler) return res.end('"Not found"'); const { args } = await receiveArgs(req); console.log(`${socket.remoteAddress} ${method} ${url}`); - const result = await handler(args); + const result = await handler(...args); res.end(JSON.stringify(result)); }) .listen(port);