Created
May 20, 2020 17:20
-
-
Save enceladus/d3025e12ceb56e30398ad6663ae33a08 to your computer and use it in GitHub Desktop.
Adding DJ-only middleware
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var { DJsOnly } = require('../services/auth0'); | |
| router.get('/', requiresAuth(), DJsOnly, function (req, res, next) { | |
| // do stuff | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment