diff options
| author | Adam Soltys <[email protected]> | 2013-02-27 19:59:21 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2013-02-27 20:12:29 -0800 |
| commit | 0b486c8c55060be71d9a97c79b5f5b32ea69d30c (patch) | |
| tree | 7ae2a4d9577681278b9eba4211a38d0f64a98590 /app.coffee | |
| parent | a24d76a8d62c9f370f1033bd10e8bc2dce158405 (diff) | |
| download | coinos-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.coffee | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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) |
