aboutsummaryrefslogtreecommitdiffstats
path: root/app.coffee
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2013-02-27 19:59:21 -0800
committerAdam Soltys <[email protected]>2013-02-27 20:12:29 -0800
commit0b486c8c55060be71d9a97c79b5f5b32ea69d30c (patch)
tree7ae2a4d9577681278b9eba4211a38d0f64a98590 /app.coffee
parenta24d76a8d62c9f370f1033bd10e8bc2dce158405 (diff)
downloadcoinos-server-0b486c8c55060be71d9a97c79b5f5b32ea69d30c.tar.gz
coinos-server-0b486c8c55060be71d9a97c79b5f5b32ea69d30c.zip
Create deposit and exec pages for issuing digiBTC
Diffstat (limited to 'app.coffee')
-rw-r--r--app.coffee20
1 files changed, 20 insertions, 0 deletions
diff --git a/app.coffee b/app.coffee
index 9bcd8169..d27fd803 100644
--- a/app.coffee
+++ b/app.coffee
@@ -51,6 +51,26 @@ authorize = (req, res, next) ->
return next()
res.redirect('/login')
+app.get('/deposit', (req, res) ->
+ res.render('main/deposit',
+ js: (-> global.js),
+ css: (-> global.css)
+ )
+)
+
+
+app.get('/exec', (req, res) ->
+ exec = require('child_process').exec
+
+ exec("opentxs stat", (err, out, stderr) ->
+ res.render('main/exec',
+ out: out.replace(/\n/g, '<br />'),
+ js: (-> global.js),
+ css: (-> global.css)
+ )
+ )
+)
+
app.get('/setup', calculator.new)
app.get('/calculator', calculator.show)
app.get('/ticker', calculator.ticker)