hapi-decorators
hapi-decorators copied to clipboard
Pre is not a function
When I use github repository I don't have problem using the decorator pre, but whe I use from npm I have this problem:
My code:
@route('delete','/{id}')
@pre([{ method: Acl.getAuthorization, assign: 'ROUTES'}])
@validate({
params:{
id: Joi.number().integer().required()
}
})
@config({
app:{
permission: { section:'ROUTES', position: 'list' }
},
auth: 'jwt'
})
deleteRoute(req, reply){}