15
src/routes/logout/index.json.ts
Normal file
15
src/routes/logout/index.json.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
export async function del({ locals }) {
|
||||
locals.session.destroy();
|
||||
|
||||
return {
|
||||
headers: {
|
||||
'set-cookie': [
|
||||
'teamId=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT',
|
||||
'gitlabToken=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT'
|
||||
]
|
||||
},
|
||||
body: {
|
||||
ok: true
|
||||
}
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user