feat: 初始化慧遇书院官网一期
This commit is contained in:
7
server/api/auth/logout.post.ts
Normal file
7
server/api/auth/logout.post.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { getAdminSession } from '../../utils/auth'
|
||||
|
||||
export default defineEventHandler(async (event) => {
|
||||
const session = await getAdminSession(event)
|
||||
await session.clear()
|
||||
return { success: true }
|
||||
})
|
||||
Reference in New Issue
Block a user