Skip to content

Commit

Permalink
Add permission control for statistics API
Browse files Browse the repository at this point in the history
  • Loading branch information
DremyGit committed Nov 24, 2016
1 parent 510e8c6 commit 8ae5db2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/controllers/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ submits
router.use('/submits', submits.routes());

statistics
.get('/', statisticController.getStatistics)
.get('/', adminRequired, statisticController.getStatistics)
.post('/', statisticController.addStatistic);
router.use('/statistics', statistics.routes());

Expand Down

0 comments on commit 8ae5db2

Please sign in to comment.