aboutsummaryrefslogtreecommitdiffstats
path: root/app.js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-08-23 00:11:30 -0700
committerAdam Soltys <[email protected]>2014-08-23 00:11:30 -0700
commitbba3ba38ec86ea98a456f56c596c9f8006e7516b (patch)
tree56ce0d5037beb5c89186a6090a9f41b6e11eeb62 /app.js
parent1249d2f4c3758a27dc553ad5037debe704c22abd (diff)
downloadcoinos-server-bba3ba38ec86ea98a456f56c596c9f8006e7516b.tar.gz
coinos-server-bba3ba38ec86ea98a456f56c596c9f8006e7516b.zip
Authorize before caching
Diffstat (limited to 'app.js')
-rw-r--r--app.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/app.js b/app.js
index aabe19f4..74e8611d 100644
--- a/app.js
+++ b/app.js
@@ -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);