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.
CoreID/app/assets/app/resource/auth/Trap.resource.js

18 lines
394 B

import CRUDBase from '../CRUDBase.js'
class TrapResource extends CRUDBase {
constructor() {
super()
this.endpoint = '/api/v1/auth/traps'
this.required_fields = ['name', 'trap', 'redirect_to']
this.permission_base = 'v1:auth:traps'
this.item = 'Trap'
this.plural = 'Traps'
}
}
const auth_trap = new TrapResource()
export { auth_trap }