@ducvnv/mirai-cms-role
v0.5.3
Published
<p align="center"> <a href="https://mirailabs.co/" target="blank"><img src="https://mirailabs.co/_next/static/media/logo.2a6685c4.svg" width="120" alt="Nest Logo" /></a> </p>
Downloads
50
Readme
Use package
B1 : npm i @ducvnv/mirai-cms-role
B2 : import and use module
RouterModulein
AppModule. RouterModule scan all path api in application and sync to CMS
B3 : use decorator @Permission() to api. @Permission() check permission user access to api
Setup env
PERMISSION_URL: URL check permission user
SYNC_URL: URL SYNC path router to CMS
KEY_SERVICE: ID service register on CMS