Crm Permission
And Nestjs base package for auto create permission in Nestjs
Install
# With npm
npm install crm-permission
# Width yarn
yarn add crm-permission
Usage
@AppController('example')
export class ExampleController {
@ApiMetaData({
description: 'Hello world',
name: 'Hello',
policy: 'example:hello',
})
@Get('/hello')
async hello() {
return 'Hello';
}
}
- Note: please check the correct order of decorator