Initial commit
This commit is contained in:
commit
92e96b9107
85 changed files with 24969 additions and 0 deletions
10
app/server/api/auth/logout.post.ts
Normal file
10
app/server/api/auth/logout.post.ts
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
export default defineEventHandler(async (event) => {
|
||||
// Clear the auth token cookie
|
||||
deleteCookie(event, 'auth-token')
|
||||
|
||||
// Return success response
|
||||
return {
|
||||
success: true,
|
||||
message: 'Logged out successfully'
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue