strapi-plugin-responsive-image
Version:
Custom responsive image formats for strapi.
36 lines (32 loc) • 591 B
JavaScript
;
/**
* responsive-image.js service
*
* @description: A set of functions similar to controller's actions to avoid code duplication.
*/
module.exports = (
{
strapi
}
) => {
return {
getSettings() {
return strapi
.store({
type: 'plugin',
name: 'responsive-image',
key: 'settings',
})
.get();
},
setSettings(value) {
return strapi
.store({
type: 'plugin',
name: 'responsive-image',
key: 'settings',
})
.set({ value });
}
};
};