From 0b486c8c55060be71d9a97c79b5f5b32ea69d30c Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Wed, 27 Feb 2013 19:59:21 -0800 Subject: Create deposit and exec pages for issuing digiBTC --- app.coffee | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'app.coffee') 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, '
'), + js: (-> global.js), + css: (-> global.css) + ) + ) +) + app.get('/setup', calculator.new) app.get('/calculator', calculator.show) app.get('/ticker', calculator.ticker) -- cgit v1.2.3