fix(vikon): use correct VIKON API endpoints

- CheckAccessAction: pull_updates/assist/getModulesTreeAsync (not checkAccessJson)
- CheckVersionAction: pull_updates/assist/getUpdateVersionJson (not getLatestVersion)

These are the actual endpoints used by the original vikon_core update.js
This commit is contained in:
F4ilji
2026-07-04 13:57:17 +05:00
parent 967db81d3c
commit 93721fc5ae
2 changed files with 28 additions and 6 deletions
@@ -15,7 +15,7 @@ class CheckVersionAction
public function run(string $accessToken): array
{
try {
$response = $this->http->getWithToken('pull_updates/getLatestVersion', $accessToken);
$response = $this->http->getWithToken('pull_updates/assist/getUpdateVersionJson', $accessToken);
$body = $response->json();
$latest = $body['version'] ?? null;
return [