
'use strict'

const router = require('express').Router()

router.get('/', (req, res) => {
	res.json({message: 'success'})
})

module.exports = router
@@ -7,17 +7,61 @@
 strict'%0A
+const passport = require('../auth/passport')
 %0A
-
 const ro
@@ -164,16 +164,175 @@
 '%7D)%0A%7D)%0A%0A
+router.get('/secret', passport.authenticate('jwt', %7B session: false %7D), (req, res) =%3E %7B%0A%09res.json('The fact that you saw tis means you are authenticated')%0A%7D)%0A%0A
 module.e
@@ -342,12 +342,13 @@
 rts = router
+%0A

Add a protected route /secret