From 78f42607e95dd9c187b1c2e955b1f4ccfac54bf7 Mon Sep 17 00:00:00 2001 From: whes1015 Date: Fri, 29 Mar 2024 01:56:26 +0800 Subject: [PATCH] fix: update to api v3 --- src/scripts/change.js | 2 +- src/scripts/forget.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/scripts/change.js b/src/scripts/change.js index 64cf29d..4175da7 100644 --- a/src/scripts/change.js +++ b/src/scripts/change.js @@ -63,7 +63,7 @@ submit.addEventListener("click", (e) => { submit.disabled = true; - fetch("https://api.exptech.com.tw/api/v1/et/change", { + fetch("https://api.exptech.com.tw/api/v3/et/change", { method : "POST", headers : { "Content-Type": "application/json" }, body : JSON.stringify({ diff --git a/src/scripts/forget.js b/src/scripts/forget.js index ae8fe45..11d82e5 100644 --- a/src/scripts/forget.js +++ b/src/scripts/forget.js @@ -18,7 +18,7 @@ submit.addEventListener("click", (e) => { submit.disabled = true; - fetch("https://api.exptech.com.tw/api/v1/et/forget", { + fetch("https://api.exptech.com.tw/api/v3/et/forget", { method : "POST", headers : { "Content-Type": "application/json" }, body : JSON.stringify({ email: values.email }),