feat: update admin routes and cookie paths to use '/lg-admin' prefix

This commit is contained in:
Ardeman
2025-02-28 12:19:05 +08:00
parent 5f1fd8b1a2
commit 3f9bfded80
5 changed files with 14 additions and 14 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ export const setAdminLogoutHeaders = () => {
const responseHeaders = new Headers()
responseHeaders.append(
'Set-Cookie',
`${ADMIN_COOKIES.token}=; Path=/admin; HttpOnly; SameSite=Strict; Max-Age=0`,
`${ADMIN_COOKIES.token}=; Path=/lg-admin; HttpOnly; SameSite=Strict; Max-Age=0`,
)
return responseHeaders