You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
387 B
19 lines
387 B
import CRUDBase from '../CRUDBase.js'
|
|
|
|
class RoleResource extends CRUDBase {
|
|
|
|
constructor() {
|
|
super()
|
|
|
|
this.endpoint = '/api/v1/auth/roles'
|
|
this.required_fields = ['role', 'permissions']
|
|
this.permission_base = 'v1:auth:roles'
|
|
|
|
this.item = 'Role'
|
|
this.plural = 'Roles'
|
|
}
|
|
}
|
|
|
|
const auth_role = new RoleResource()
|
|
export { auth_role }
|