댓글/회원/관리자 인증·프로필 흐름 보완과 관련 마이그레이션 및 문서를 함께 반영해 운영 동선을 안정화. Co-authored-by: Cursor <cursoragent@cursor.com>
17 lines
413 B
JavaScript
17 lines
413 B
JavaScript
import { clearAdminSession } from '../../../../utils/admin-auth'
|
|
import { clearMemberSession } from '../../../../utils/member-auth'
|
|
|
|
/**
|
|
* 관리자 로그아웃 API
|
|
* @param {import('h3').H3Event} event - 요청 이벤트
|
|
* @returns {{ ok: boolean }} 로그아웃 결과
|
|
*/
|
|
export default defineEventHandler((event) => {
|
|
clearAdminSession(event)
|
|
clearMemberSession(event)
|
|
|
|
return {
|
|
ok: true
|
|
}
|
|
})
|