diff options
| author | Adam Soltys <[email protected]> | 2013-06-26 12:18:53 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2013-06-26 12:18:53 -0700 |
| commit | 29650f3732856a8af1e9b23fd8df0cfa7d305745 (patch) | |
| tree | 0c0eb403432227115d67bb7be2c10fa722b05b1d /app.coffee | |
| parent | 6046994e1f2a658a74838379e3a5e5489b2e6e8e (diff) | |
| download | coinos-server-29650f3732856a8af1e9b23fd8df0cfa7d305745.tar.gz coinos-server-29650f3732856a8af1e9b23fd8df0cfa7d305745.zip | |
Remove vanbtc stuff, just focus on PoS
Diffstat (limited to 'app.coffee')
| -rw-r--r-- | app.coffee | 40 |
1 files changed, 1 insertions, 39 deletions
@@ -25,52 +25,14 @@ app.use(passport.initialize()) app.use(passport.session()) app.use(app.router) -routes = - "/": 'main/index' - "/about": 'main/about' - "/digibtc": 'main/digibtc' - "/exchangers": 'main/exchangers' - "/exchangers/join": 'main/join' - "/merchants": 'main/merchants' - "/merchants/signup": 'main/signup' - "/contact": 'main/contact' - -for route, view of routes - ((route, view) -> - app.get(route, (req, res) -> - res.render(view, - js: (-> global.js), - css: (-> global.css), - layout: 'layout' - ) - ) - )(route, view) - authorize = (req, res, next) -> if req.params.user is req.user?.username or req.user?.username is 'admin' return next() res.redirect('/login') -app.get('/deposit', (req, res) -> - res.render('main/deposit', - js: (-> global.js), - css: (-> global.css) - ) -) - - -app.get('/issue/:amount', (req, res) -> - exec = require('child_process').exec - - exec("opentxs writecheque --myacct issuer --args \"memo \\\"Here's some OT-Bitcoins.\\\" amount #{req.params.amount} validfor 2592000\"", (err, out, stderr) -> - res.write(out) - res.end() - ) -) - +app.get('/', calculator.show) app.get('/setup', calculator.new) -app.get('/calculator', calculator.show) app.get('/ticker', calculator.ticker) app.get('/login', sessions.new) |
