From 51023a0e141dfb35fb20a82c77628afdf996c286 Mon Sep 17 00:00:00 2001 From: Aetherinox Date: Fri, 11 Apr 2025 13:00:29 -0700 Subject: [PATCH] refactor: move api endpoint `restart` to `api/restart` --- tvapp2/index.js | 1 + tvapp2/www/index.html | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/tvapp2/index.js b/tvapp2/index.js index ca807a0c..29bd324a 100755 --- a/tvapp2/index.js +++ b/tvapp2/index.js @@ -118,6 +118,7 @@ const subdomainEPG = [ 'guide', 'epg', 'xml' ]; const subdomainKey = [ 'key', 'keys' ]; const subdomainChan = [ 'channels', 'channel', 'chan' ]; const subdomainHealth = [ 'api/status', 'api/health' ]; +const subdomainRestart = [ 'api/restart', 'api/sync', 'api/resync' ]; /* Container Information diff --git a/tvapp2/www/index.html b/tvapp2/www/index.html index 9e92da86..ce3c88cd 100644 --- a/tvapp2/www/index.html +++ b/tvapp2/www/index.html @@ -370,8 +370,8 @@ { $.ajax( { - url: 'restart', - type: 'POST', + url: 'api/restart', + type: 'GET', data: { internal: 1 },