Commit 12322506 authored by Vytor Calixto's avatar Vytor Calixto 👾
Browse files

Alterada rota para bloquear usuário

parent 7a223444
......@@ -147,7 +147,7 @@ router.put('/:id', passport.authenticate('bearer', { session: false }), role.isA
})
})
router.put('/block/:id', passport.authenticate('bearer', { session: false }), role.isModerador(), function(req, res) {
router.post('/:id/block', passport.authenticate('bearer', { session: false }), role.isModerador(), function(req, res) {
Usuario.findById(req.params.id, function(err, usuario) {
if(!usuario) {
res.statusCode = 404
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment