추가
This commit is contained in:
8
backend/api/auth/logout.post.ts
Normal file
8
backend/api/auth/logout.post.ts
Normal file
@@ -0,0 +1,8 @@
|
||||
/**
|
||||
* 로그아웃
|
||||
* POST /api/auth/logout
|
||||
*/
|
||||
export default defineEventHandler(async (event) => {
|
||||
deleteCookie(event, 'user_id')
|
||||
return { success: true }
|
||||
})
|
||||
Reference in New Issue
Block a user