diff options
| author | Alex Millar <[email protected]> | 2015-11-13 14:10:56 -0800 |
|---|---|---|
| committer | Alex Millar <[email protected]> | 2015-11-13 14:10:56 -0800 |
| commit | b08cf52fffff2ca5d6af2a24aabfc15a106a9bae (patch) | |
| tree | 34cee48f5ac001b51cc1098c9f649899634d97e6 /app.js | |
| parent | 8e87409f6deb2dddfa071976448e602527558757 (diff) | |
| parent | dd304a2cc7675b09d1db93f2835c4603474c8581 (diff) | |
| download | coinos-server-b08cf52fffff2ca5d6af2a24aabfc15a106a9bae.tar.gz coinos-server-b08cf52fffff2ca5d6af2a24aabfc15a106a9bae.zip | |
Merge remote-tracking branch 'asoltys/master'
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 28 |
1 files changed, 24 insertions, 4 deletions
@@ -105,13 +105,31 @@ app.get('/', cache, sessions["new"]); + app.get('/address', cache, calculator.address); + app.get('/register', cache, users["new"]); + app.get('/sweep', calculator.sweep); + app.get('/ticker', cache, calculator.ticker); - app.get('/sweep', calculator.sweep); + app.get('/token', cache, function(req, res) { + res.write(config.blockcypher_token); + return res.end(); + }); - app.get('/address', cache, calculator.address); + app.get('/tips', cache, function(req, res) { + return res.render('tips', { + notice: true, + layout: 'layout', + js: (function() { + return global.js; + }), + css: (function() { + return global.css; + }) + }); + }); app.get('/login', cache, sessions["new"]); @@ -125,11 +143,13 @@ app.get('/verify/:token', users.verify); - app.get('/:user/profile', authorize, users.profile); + app.post('/:user', authorize, users.update); app.get('/:user/edit', authorize, users.edit); - app.post('/:user', authorize, users.update); + app.get('/:user/profile', authorize, users.profile); + + app.get('/:user/wallet', authorize, users.wallet); app.get('/:user/transactions.json', authorize, transactions.json); |
