Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pre is not a function #14

Open
kesmile opened this issue Jan 26, 2018 · 0 comments
Open

Pre is not a function #14

kesmile opened this issue Jan 26, 2018 · 0 comments

Comments

@kesmile
Copy link

kesmile commented Jan 26, 2018

When I use github repository I don't have problem using the decorator pre, but whe I use from npm I have this problem:

image

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){}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant