로그아웃 버튼 추가

This commit is contained in:
static committed 2025-01-13 07:40:10 +09:00
1 parent 919a67fedf
commit 9ab107794a
2 files changed
+22

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
import { callPostApi } from "$lib/hooks";
export const requestLogout = async () => {
const res = await callPostApi("/api/auth/logout");
return res.ok;
};