2020-05-16 23:55:08 -05:00
|
|
|
import CRUDBase from '../CRUDBase.js'
|
|
|
|
|
|
|
|
|
|
class ScopeResource extends CRUDBase {
|
2020-10-28 19:53:07 -05:00
|
|
|
constructor() {
|
|
|
|
|
super()
|
2020-05-16 23:55:08 -05:00
|
|
|
|
2020-10-28 19:53:07 -05:00
|
|
|
this.endpoint = '/api/v1/reflect/scopes'
|
|
|
|
|
this.required_fields = ['scope']
|
|
|
|
|
this.permission_base = 'v1:reflect:scopes'
|
|
|
|
|
|
|
|
|
|
this.item = 'API Scope'
|
|
|
|
|
this.plural = 'API Scopes'
|
|
|
|
|
}
|
2020-05-16 23:55:08 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const reflect_scope = new ScopeResource()
|
|
|
|
|
export { reflect_scope }
|