1.0.10 • Published 1 year ago

@relationc/permissions v1.0.10

Weekly downloads
-
License
UNLICENSED
Repository
github
Last release
1 year ago

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