로그아웃 버튼 추가

This commit is contained in:
static
2025-01-13 07:40:10 +09:00
parent 919a67fedf
commit 9ab107794a
2 changed files with 22 additions and 0 deletions

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;
};