mirror of
https://github.com/baserow/baserow.git
synced 2026-12-04 08:18:42 +00:00
22 lines
426 B
JavaScript
22 lines
426 B
JavaScript
export default (client) => {
|
|
return {
|
|
report(
|
|
{ resourceType, identifier, name, email, description, captchaToken },
|
|
config = {}
|
|
) {
|
|
return client.post(
|
|
'/abuse-reports/',
|
|
{
|
|
resource_type: resourceType,
|
|
identifier,
|
|
name,
|
|
email,
|
|
description,
|
|
captcha_token: captchaToken || '',
|
|
},
|
|
config
|
|
)
|
|
},
|
|
}
|
|
}
|