You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
8 lines
343 B
8 lines
343 B
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);
|
|
});
|
|
|