fix cookie API endpoint

This commit is contained in:
Simon 2025-01-28 10:20:00 +07:00
parent b36ac337cf
commit bcb8f545e8
No known key found for this signature in database
GPG Key ID: 2C15AA5E89985DD4

View File

@ -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'),
};