diff options
| author | Adam Soltys <[email protected]> | 2012-12-04 00:47:41 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-12-04 00:47:41 -0800 |
| commit | 00a08d7c8b10b726830505b58a045a49bb2046fe (patch) | |
| tree | 4fb1c7d27991cc2070b34f2c98d4bf5bf3a1939d /app.coffee | |
| parent | 98a44809dc33e125f92e451a0b5b7cb8bb3fd806 (diff) | |
| download | coinos-server-00a08d7c8b10b726830505b58a045a49bb2046fe.tar.gz coinos-server-00a08d7c8b10b726830505b58a045a49bb2046fe.zip | |
Note about fees
Diffstat (limited to 'app.coffee')
| -rw-r--r-- | app.coffee | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -164,7 +164,7 @@ app.post('/users', (req, res) -> res.redirect('calculator?' + params.join('')) ) -app.post('/:user/transactions', ensureAuthenticated, (req, res) -> +app.post('/:user/transactions', (req, res) -> user = req.params.user db.incr('transactions', (err, id) -> db.hmset("#{user}:transactions:#{id}", req.body, -> @@ -192,7 +192,7 @@ app.get('/:user/edit', ensureAuthenticated, (req, res) -> ) ) -app.get('/:user', ensureAuthenticated, (req, res) -> +app.get('/:user', (req, res) -> console.log(req.user) res.render('calculator', user: req.params.user, |
