feat: some changes and admin

This commit is contained in:
2026-03-31 16:09:03 +09:00
parent b5a1c08024
commit fd0f451e7c
54 changed files with 2156 additions and 8 deletions

View File

@@ -0,0 +1,18 @@
'use client';
import style from '@/styles/admin.module.scss';
export function LogoutButton() {
return (
<button
type="button"
className={style.btnGhost}
onClick={async () => {
await fetch('/api/auth/logout', { method: 'POST', credentials: 'include' });
window.location.href = '/admin/login';
}}
>
Log out
</button>
);
}