Sha256: 72aded1626632b5d400f0d234c8fdcfa9b7c251dd7b4900a9f062f5cee626e67
Contents?: true
Size: 617 Bytes
Versions: 24
Compression:
Stored size: 617 Bytes
Contents
export default (api) => ({ find: async (locally) => { // NOTE: we save a request to the API by attaching the site to the Window object if (locally) return window.site console.log('[SiteService] Fetching current site') return api.get(`/site`).then(({ data }) => data) }, updateStyle(style) { return api.put(`/style`, { site: { style } }).then((response) => { return response.headers['lock-version'] }) }, publish() { return api.post(`/publication`).then(({ data }) => data) }, getLastPublication() { return api.get(`/publication`).then(({ data }) => data) }, })
Version data entries
24 entries across 24 versions & 1 rubygems