GitbookIO / nuts

:chestnut: Releases/downloads server with auto-updater and GitHub as a backend
http://nuts.gitbook.com
Apache License 2.0
1.25k stars 300 forks source link

protect routes #167

Open almamlaka opened 4 years ago

almamlaka commented 4 years ago

is there any way to protect routes like

router.get('/nuts/download/win', auth.hasRole(['cashier']));