Spaces:
Sleeping
Sleeping
Download src/pages/api/auth/logout.js from TXAVLOG/dptxa-proxy: direct link, hf CLI and curl.
- Browser
- Download file 254 Bytes
-
https://huggingface.co/spaces/TXAVLOG/dptxa-proxy/resolve/main/src/pages/api/auth/logout.js
- Command line
-
hf download hf://spaces/TXAVLOG/dptxa-proxy/src/pages/api/auth/logout.js
-
curl -L -o logout.js https://huggingface.co/spaces/TXAVLOG/dptxa-proxy/resolve/main/src/pages/api/auth/logout.js
254 Bytes
| export const POST = async ({ cookies }) => { | |
| cookies.delete('auth_token', { path: '/' }); | |
| return new Response(JSON.stringify({ message: 'Đăng xuất thành công!' }), { | |
| status: 200, | |
| headers: { 'Content-Type': 'application/json' } | |
| }); | |
| }; | |