From cd40550e20791d944fa302a7b92e30dc1e36b24c Mon Sep 17 00:00:00 2001 From: "MSI\\derek" Date: Tue, 10 Sep 2024 13:31:35 +0800 Subject: [PATCH] update --- src/app/api/mail/actions.ts | 20 ++++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/app/api/mail/actions.ts b/src/app/api/mail/actions.ts index 35812da..b4ac628 100644 --- a/src/app/api/mail/actions.ts +++ b/src/app/api/mail/actions.ts @@ -17,8 +17,24 @@ export const saveMail = async (data: MailSave) => { }); }; -export const testMail = async () => { - return serverFetchWithNoContent(`${BASE_API_URL}/mails/test`, { +export const testEveryone = async () => { + return serverFetchWithNoContent(`${BASE_API_URL}/mails/testEveryone`, { + method: "GET", + // body: JSON.stringify(data), + headers: { "Content-Type": "application/json" }, + }); +}; + +export const test7th = async () => { + return serverFetchWithNoContent(`${BASE_API_URL}/mails/test7th`, { + method: "GET", + // body: JSON.stringify(data), + headers: { "Content-Type": "application/json" }, + }); +}; + +export const test15th = async () => { + return serverFetchWithNoContent(`${BASE_API_URL}/mails/test15th`, { method: "GET", // body: JSON.stringify(data), headers: { "Content-Type": "application/json" },