From bcb8f545e82ab73e61a70cf5e9828a892e6e00c1 Mon Sep 17 00:00:00 2001 From: Simon Date: Tue, 28 Jan 2025 10:20:00 +0700 Subject: [PATCH] fix cookie API endpoint --- extension/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extension/background.js b/extension/background.js index 5ec1506..ef54f9d 100644 --- a/extension/background.js +++ b/extension/background.js @@ -77,7 +77,7 @@ async function getAccess() { // check if cookie is valid async function getCookieState() { - const path = 'api/cookie/'; + const path = 'api/appsettings/cookie/'; let response = await sendGet(path); console.log('cookie state: ' + JSON.stringify(response)); @@ -185,7 +185,7 @@ async function getChannel(channelHandle) { } async function cookieStr(cookieLines) { - const path = 'api/cookie/'; + const path = 'api/appsettings/cookie/'; let payload = { cookie: cookieLines.join('\n'), };