}
)
env.request.pipe(write_stream)
- let arguments = JSON.parse((await data).toString())
- console.log('endpoint', env.parsed_url.path, 'arguments', JSON.stringify(arguments))
+ let args = JSON.parse((await data).toString())
+ console.log('endpoint', env.parsed_url.path, 'args', JSON.stringify(args))
- result = await handler(...arguments)
+ result = await handler(...args)
if (result === undefined)
result = null
console.log('endpoint', env.parsed_url.path, 'result', JSON.stringify(result))