be683556ff
* fix: close resultsets so we don't leak them * Refactor browsers/database To implement PR suggestions and improve code quality. * Refactor services/permissions/database To implement PR suggestions and improve code quality. Co-authored-by: Samuel Hawksby-Robinson <samuel@samyoul.com> |
||
---|---|---|
.. | ||
README.md | ||
api.go | ||
api_test.go | ||
database.go | ||
service.go |
README.md
Dapps permissions service
To enable:
{
"PermissionsConfig": {
"Enabled": true,
},
APIModules: "permissions"
}
API
permissions_addDappPermissions
Stores provided permissions for dapp. On update replaces previous version of the object.
{
"dapp": "first",
"permissions": [
"r",
"x"
]
}
permissions_getDappPermissions
Returns all permissions for dapps. Order is not deterministic.
permissions_deleteDappPermissions
Delete dapp by a name.