budibase/packages/frontend-core/src/api/analytics.js

17 lines
362 B
JavaScript
Raw Normal View History

export const buildAnalyticsEndpoints = API => ({
/**
* Gets the current status of analytics for this environment
*/
getAnalyticsStatus: async () => {
return await API.get({
url: "/api/bbtel",
})
},
2022-08-10 12:01:54 +02:00
analyticsPing: async ({ source }) => {
return await API.post({
url: "/api/bbtel/ping",
body: { source },
})
},
})