diff options
| author | Adam Soltys <[email protected]> | 2014-08-23 00:11:30 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2014-08-23 00:11:30 -0700 |
| commit | bba3ba38ec86ea98a456f56c596c9f8006e7516b (patch) | |
| tree | 56ce0d5037beb5c89186a6090a9f41b6e11eeb62 /app.js | |
| parent | 1249d2f4c3758a27dc553ad5037debe704c22abd (diff) | |
| download | coinos-server-bba3ba38ec86ea98a456f56c596c9f8006e7516b.tar.gz coinos-server-bba3ba38ec86ea98a456f56c596c9f8006e7516b.zip | |
Authorize before caching
Diffstat (limited to 'app.js')
| -rw-r--r-- | app.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -122,7 +122,7 @@ app.post('/users', users.create); - app.get('/:user/edit', cache, authorize, users.edit); + app.get('/:user/edit', authorize, cache, users.edit); app.post('/:user', authorize, users.update); @@ -130,7 +130,7 @@ app.post('/:user/transactions', transactions.create); - app.get('/:user/report', cache, authorize, transactions.index); + app.get('/:user/report', authorize, cache, transactions.index); app.get('/:user.json', users.json); |
