관리자 기능과 태그 표시 설정 추가
This commit is contained in:
14
server/routes/admin/api/auth/logout.post.js
Normal file
14
server/routes/admin/api/auth/logout.post.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import { clearAdminSession } from '../../../../utils/admin-auth'
|
||||
|
||||
/**
|
||||
* 관리자 로그아웃 API
|
||||
* @param {import('h3').H3Event} event - 요청 이벤트
|
||||
* @returns {{ ok: boolean }} 로그아웃 결과
|
||||
*/
|
||||
export default defineEventHandler((event) => {
|
||||
clearAdminSession(event)
|
||||
|
||||
return {
|
||||
ok: true
|
||||
}
|
||||
})
|
||||
Reference in New Issue
Block a user