| 1 |
import apiFetch from '@wordpress/api-fetch'; |
| 2 |
|
| 3 |
export const updateOption = async (option, value) => |
| 4 |
await apiFetch({ |
| 5 |
path: '/extendify/v1/library/settings/single', |
| 6 |
method: 'POST', |
| 7 |
data: { key: option, value }, |
| 8 |
}); |
| 9 |
|
| 10 |
export const getSiteImages = () => |
| 11 |
apiFetch({ path: '/extendify/v1/shared/site-images' }); |
| 12 |
|