Add sign up draft facility (avoids having to re-enter data if you refresh page)
[ndcode_site.git] / _lib / post_request.jst
index a20e797..7d7f2ba 100644 (file)
@@ -24,12 +24,12 @@ return async (env, api, func) => {
     )
     env.request.pipe(write_stream)
     let arguments = JSON.parse((await data).toString())
-    console.log('api', api, 'arguments', arguments)
+    console.log('api', api, 'arguments', JSON.stringify(arguments))
 
     result = await func(...arguments)
     if (result === undefined)
       result = null
-    console.log('api', api, 'result', result)
+    console.log('api', api, 'result', JSON.stringify(result))
   }
   catch (error) {
     let problem =