import { updateSettings } from "#server/service/collection"; export default defineWrappedResponseHandler({ auth: "required" }, async (event) => { const body = await readBody(event); if (typeof body !== "object" || !body) return R.error("参数无效", null); const updated = await updateSettings(body); return R.success(updated); });