import "../../../base64-CmWvODNW.mjs";
import "../../../types-CuW0zWDA.mjs";
import { n as apiSuccess, r as handleError } from "../../../error-CkAseSqZ.mjs";
import { t as getWidgetComponents } from "../../../components-B_sATNUc.mjs";

//#region src/astro/routes/api/widget-components.ts
const prerender = false;
const GET = async () => {
	try {
		return apiSuccess({ items: getWidgetComponents() });
	} catch (error) {
		return handleError(error, "Failed to fetch widget components", "WIDGET_COMPONENTS_ERROR");
	}
};

//#endregion
export { GET, prerender };
//# sourceMappingURL=widget-components.mjs.map