smisy / aws-lambda-boilerplate

aws lambda, typescript, mongodb, nodejs
MIT License
6 stars 2 forks source link

Make security-role decorator #10

Closed ttruongatl closed 6 years ago

ttruongatl commented 6 years ago

As a developer, I want to make security decorator for each REST API. For instance:

@security-roles('admin')
getUserList() {
...
}

there is only admin who is able to access the api.