From b603091c0e1f498ea78086a6d8a086a1ac2dc55c Mon Sep 17 00:00:00 2001 From: Furrium Network Date: Sun, 9 Aug 2026 22:32:52 +0800 Subject: [PATCH] Update api.js --- js/api.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/js/api.js b/js/api.js index e771de8..1208407 100644 --- a/js/api.js +++ b/js/api.js @@ -287,19 +287,19 @@ const API = { return data || []; }, - async createCustomPage(name, title, content, sort_order) { + async createCustomPage(name, title, content) { const data = await apiFetch('/admin/custom-pages', { method: 'POST', - body: JSON.stringify({ name, title, content, sort_order }) + body: JSON.stringify({ name, title, content }) }); if (data.error) throw new Error(data.error); return data; }, - async updateCustomPage(id, title, content, sort_order, enabled) { + async updateCustomPage(id, title, content, enabled) { const data = await apiFetch('/admin/custom-pages/' + id, { method: 'PUT', - body: JSON.stringify({ title, content, sort_order, enabled }) + body: JSON.stringify({ title, content, enabled }) }); if (data.error) throw new Error(data.error); return data;