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.
14 lines
306 B
14 lines
306 B
4 years ago
|
import CRUDBase from '../CRUDBase.js'
|
||
|
|
||
|
class TrapResource extends CRUDBase {
|
||
|
endpoint = '/api/v1/auth/traps'
|
||
|
required_fields = ['name', 'trap', 'redirect_to']
|
||
|
permission_base = 'v1:auth:traps'
|
||
|
|
||
|
item = 'Trap'
|
||
|
plural = 'Traps'
|
||
|
}
|
||
|
|
||
|
const auth_trap = new TrapResource()
|
||
|
export { auth_trap }
|