You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@ApiTags('Security')
@Controller('security')exportclassSecurityController{constructor(privateroles: RolesService){}
@ApiTags('Roles')
@GetAll({service: RolesService,})asyncgetRoles(){}
@ApiTags('Roles')
@GetOne({service: RolesService,})asyncgetRole(){}
@ApiTags('Roles')
@CreateOne({service: RolesService,})asynccreateRole(){}
@ApiTags('Roles')
@UpdateOne({service: RolesService,})asyncupdateRole(){}
@ApiTags('Roles')
@DeleteOne({service: RolesService,softDelete: true,})asyncdeleteRole(){}
@ApiTags('Roles')//Los tipos genericos son optionales, los puse solo para el autocompletamiento de las relaciones
@AddRelation<RolesService,RolesEntity>({service: RolesService,},'functionalities',)asyncaddFunctionality2Role(){}
@ApiTags('Roles')
@DeleteRelation({service: RolesService,},'functionalities',)asyncremoveFunctionalityInRole(){}}