const { themeOptions } = require('../../../utils/themeResolve') // The theme catalog the admin appearance form builds its controls from: the // presets and their swatches, the curated font shortlist, the shadow depths, // and which color and radius fields are editable. // // Served rather than duplicated in client code so the options the form OFFERS // can never drift from the ones validateThemeVisual() ACCEPTS — a drift shows // up as an admin picking a font and the save 400ing for no visible reason. // // Static: derived from config/themePresets.js with no DB read, so there is // nothing here to fail and no error branch to write. function getThemeOptions(req, res) { return res.json(themeOptions()) } module.exports = { getThemeOptions }