mirror of
https://github.com/baserow/baserow.git
synced 2026-12-06 01:08:32 +00:00
31 lines
723 B
JavaScript
31 lines
723 B
JavaScript
export default (client) => {
|
|
return {
|
|
rotateSlug(formId) {
|
|
return client.post(`/database/views/form/${formId}/rotate-slug/`)
|
|
},
|
|
getMetaInformation(slug) {
|
|
return client.get(`/database/views/form/${slug}/submit/`)
|
|
},
|
|
submit(slug, values) {
|
|
return client.post(`/database/views/form/${slug}/submit/`, values)
|
|
},
|
|
linkRowFieldLookup(slug, fieldId, page, search = null) {
|
|
const config = {
|
|
params: {
|
|
page,
|
|
size: 100,
|
|
},
|
|
}
|
|
|
|
if (search !== null) {
|
|
config.params.search = search
|
|
}
|
|
|
|
return client.get(
|
|
`/database/views/form/${slug}/link-row-field-lookup/${fieldId}/`,
|
|
config
|
|
)
|
|
},
|
|
}
|
|
}
|