aboutsummaryrefslogtreecommitdiffstats
path: root/app.js
diff options
context:
space:
mode:
authorAlex Millar <[email protected]>2015-11-13 14:10:56 -0800
committerAlex Millar <[email protected]>2015-11-13 14:10:56 -0800
commitb08cf52fffff2ca5d6af2a24aabfc15a106a9bae (patch)
tree34cee48f5ac001b51cc1098c9f649899634d97e6 /app.js
parent8e87409f6deb2dddfa071976448e602527558757 (diff)
parentdd304a2cc7675b09d1db93f2835c4603474c8581 (diff)
downloadcoinos-server-b08cf52fffff2ca5d6af2a24aabfc15a106a9bae.tar.gz
coinos-server-b08cf52fffff2ca5d6af2a24aabfc15a106a9bae.zip
Merge remote-tracking branch 'asoltys/master'
Diffstat (limited to 'app.js')
-rw-r--r--app.js28
1 files changed, 24 insertions, 4 deletions
diff --git a/app.js b/app.js
index c82f895e..cc79d0cc 100644
--- a/app.js
+++ b/app.js
@@ -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);