mirror of
https://github.com/baserow/baserow.git
synced 2026-12-05 08:48:35 +00:00
24 lines
650 B
JavaScript
24 lines
650 B
JavaScript
export default (client) => {
|
|
return {
|
|
publish(domain) {
|
|
return client.post(`builder/domains/${domain.id}/publish/async/`, {
|
|
domain_id: domain.id,
|
|
})
|
|
},
|
|
fetchByDomain(domain) {
|
|
return client.get(`builder/domains/published/by_name/${domain}/`)
|
|
},
|
|
fetchById(builderId) {
|
|
return client.get(`builder/domains/published/by_id/${builderId}/`)
|
|
},
|
|
fetchElements(page) {
|
|
return client.get(`builder/domains/published/page/${page.id}/elements/`)
|
|
},
|
|
fetchDataSources(pageId) {
|
|
return client.get(
|
|
`builder/domains/published/page/${pageId}/data_sources/`
|
|
)
|
|
},
|
|
}
|
|
}
|