diff --git a/interfaces/Config/templates/_inc_header_uc.tmpl b/interfaces/Config/templates/_inc_header_uc.tmpl index 0457559..b9237ec 100644 --- a/interfaces/Config/templates/_inc_header_uc.tmpl +++ b/interfaces/Config/templates/_inc_header_uc.tmpl @@ -46,7 +46,7 @@ var sabSession = '$session'; var rootURL = '${root}' var urlBase = '${url_base}' - var folderBrowseUrl = '${root}tapi?mode=browse&output=json&apikey=$session'; + var folderBrowseUrl = '${root}api?mode=browse&output=json&apikey=$session'; var folderSeperator = '#if $os.sep == '\\' then '\\\\' else '/'#' // Translations diff --git a/interfaces/Config/templates/config_general.tmpl b/interfaces/Config/templates/config_general.tmpl index 753e0f9..d1b7d5d 100644 --- a/interfaces/Config/templates/config_general.tmpl +++ b/interfaces/Config/templates/config_general.tmpl @@ -289,7 +289,7 @@ if (confirm("$T('Plush-confirm')")) { $.ajax({ type: "POST", - url: "../../tapi", + url: "../../api", data: {mode:'config', name:'set_apikey', apikey: \$('#apikey').val()}, success: function(msg){ \$('#apikey').val(msg); @@ -302,7 +302,7 @@ if (confirm("$T('Plush-confirm')")) { $.ajax({ type: "POST", - url: "../../tapi", + url: "../../api", data: { mode:'config', name:'set_nzbkey', apikey: \$('#apikey').val() }, success: function(msg){ \$('#nzbkey').val(msg); @@ -334,7 +334,7 @@ // Submit request and then restart $.ajax({ type: "POST", - url: "../../tapi", + url: "../../api", data: { mode: 'config', name: 'regenerate_certs', apikey: \$('#apikey').val() }, success: function(msg) { do_restart() diff --git a/interfaces/Config/templates/config_notify.tmpl b/interfaces/Config/templates/config_notify.tmpl index 70dc96e..94fa401 100644 --- a/interfaces/Config/templates/config_notify.tmpl +++ b/interfaces/Config/templates/config_notify.tmpl @@ -405,7 +405,7 @@ // Get the request \$.ajax({ type: "GET", - url: "../../tapi", + url: "../../api", data: data }).then(function(data) { // Remove disabled and make the box diff --git a/interfaces/Config/templates/config_server.tmpl b/interfaces/Config/templates/config_server.tmpl index c945361..164eed7 100644 --- a/interfaces/Config/templates/config_server.tmpl +++ b/interfaces/Config/templates/config_server.tmpl @@ -491,7 +491,7 @@ theButton.find('span').toggleClass('glyphicon-sort glyphicon-refresh spin-glyphicon') \$.ajax({ type: "POST", - url: "../../tapi", + url: "../../api", data: "mode=config&output=json&name=test_server&" + \$(this).parents('form:first').serialize() }).then(function(data) { // Let's replace the link diff --git a/interfaces/Config/templates/config_sorting.tmpl b/interfaces/Config/templates/config_sorting.tmpl index 2945652..77ddea2 100644 --- a/interfaces/Config/templates/config_sorting.tmpl +++ b/interfaces/Config/templates/config_sorting.tmpl @@ -475,7 +475,7 @@ \$('#previewtv-result').addClass("loading"); \$.ajax({ type: "GET", - url: "../../tapi", + url: "../../api", data: {mode:'eval_sort', value: 'series', name: \$('#tvsamplename').val(), title: \$tvsortstring, apikey: '$session', output: 'json' }, success: function(data){ \$('#previewtv-result').removeClass("loading failure").html(data.result); @@ -496,7 +496,7 @@ \$('#previewmovie-result').addClass("loading"); \$.ajax({ type: "GET", - url: "../../tapi", + url: "../../api", data: {mode:'eval_sort', value: 'movie', name: \$('#moviesamplename').val(), title: \$moviesortstring, movieextra: \$('#movieextra').val(), apikey: '$session', output: 'json' }, success: function(data){ \$('#previewmovie-result').removeClass("loading failure").html(data.result); @@ -517,7 +517,7 @@ \$('#previewdate-result').addClass("loading"); \$.ajax({ type: "GET", - url: "../../tapi", + url: "../../api", data: {mode:'eval_sort', value: 'date', name: \$('#datesamplename').val(), title: \$datesortstring, apikey: '$session', output: 'json' }, success: function(data){ \$('#previewdate-result').removeClass("loading failure").html(data.result); diff --git a/interfaces/Config/templates/config_switches.tmpl b/interfaces/Config/templates/config_switches.tmpl index fb2d4bf..2af868a 100644 --- a/interfaces/Config/templates/config_switches.tmpl +++ b/interfaces/Config/templates/config_switches.tmpl @@ -535,7 +535,7 @@ // Send request \$.ajax({ type: "GET", - url: "../../tapi", + url: "../../api", data: "mode=set_config_default&session=${session}&output=json&keyword=" + key_container.join('&keyword=') }).then(function(data) { // Reload page diff --git a/interfaces/Glitter/templates/static/javascripts/glitter.basic.js b/interfaces/Glitter/templates/static/javascripts/glitter.basic.js index 438bd9d..44c511c 100644 --- a/interfaces/Glitter/templates/static/javascripts/glitter.basic.js +++ b/interfaces/Glitter/templates/static/javascripts/glitter.basic.js @@ -30,7 +30,7 @@ function callAPI(data) { data.output = "json"; data.apikey = apiKey; var ajaxQuery = $.ajax({ - url: "./tapi", + url: "./api", type: "GET", cache: false, data: data, diff --git a/interfaces/Glitter/templates/static/javascripts/glitter.main.js b/interfaces/Glitter/templates/static/javascripts/glitter.main.js index 6976a8c..b8bf9d8 100644 --- a/interfaces/Glitter/templates/static/javascripts/glitter.main.js +++ b/interfaces/Glitter/templates/static/javascripts/glitter.main.js @@ -717,7 +717,7 @@ function ViewModel() { // Add this one $.ajax({ - url: "./tapi", + url: "./api", type: "POST", cache: false, processData: false, diff --git a/interfaces/Plush/templates/_inc_modals.tmpl b/interfaces/Plush/templates/_inc_modals.tmpl index 39cac54..3863232 100644 --- a/interfaces/Plush/templates/_inc_modals.tmpl +++ b/interfaces/Plush/templates/_inc_modals.tmpl @@ -74,7 +74,7 @@ $T('Plush-containerWidth'):