aboutsummaryrefslogtreecommitdiffstats
path: root/app.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2013-02-27 20:12:18 -0800
committerAdam Soltys <[email protected]>2013-02-27 20:12:29 -0800
commit93a437fe56e53f670bfc883605d95ecd4ddfc9dc (patch)
tree89e2f0a080986c6ebdef8b173ea6a90385d24af9 /app.coffee
parent0b486c8c55060be71d9a97c79b5f5b32ea69d30c (diff)
downloadcoinos-server-93a437fe56e53f670bfc883605d95ecd4ddfc9dc.tar.gz
coinos-server-93a437fe56e53f670bfc883605d95ecd4ddfc9dc.zip
Change exec command
Diffstat (limited to 'app.coffee')
-rw-r--r--app.coffee11
1 files changed, 5 insertions, 6 deletions
diff --git a/app.coffee b/app.coffee
index d27fd803..dbd50851 100644
--- a/app.coffee
+++ b/app.coffee
@@ -59,15 +59,14 @@ app.get('/deposit', (req, res) ->
)
-app.get('/exec', (req, res) ->
+app.get('/issue/:amount', (req, res) ->
exec = require('child_process').exec
+
+# exec("opentxs sendcheque --myacct issuer --args \"memo \\\"here are your OT bitcoins.\\\" amount #{req.params.amount}\" --args \\\"validfor 2592001\\\"", (err, out, stderr) ->
exec("opentxs stat", (err, out, stderr) ->
- res.render('main/exec',
- out: out.replace(/\n/g, '<br />'),
- js: (-> global.js),
- css: (-> global.css)
- )
+ res.write(out)
+ res.end()
)
)