Get Theme Option

This one is for getting a theme option by the option name. The endpoint is "get/themeOption/{optionName}". It returns the full entry for the option.

Example:

let optionName = '...'
fetch(`www.mysite.com/api/get/themeOption/${optionName}`)
.then((blob) => {
return blob.json()
})
.then((data) => {
// This will be an array of the theme option entry (ID, name, value)
console.log(data.content)
})