mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 02:38:28 +00:00
Allow path prefix multiplexing the dashboard and API. See https://github.com/pi-hole/FTL/pull/2319 for further details
Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
* This file is copyright under the latest version of the EUPL.
|
||||
* Please see LICENSE file for your rights under this license. */
|
||||
|
||||
/* global utils:false, apiFailure:false, updateFtlInfo:false, processGroupResult:false, delGroupItems:false */
|
||||
/* global utils:false, apiUrl:false, apiFailure:false, updateFtlInfo:false, processGroupResult:false, delGroupItems:false */
|
||||
|
||||
var table;
|
||||
|
||||
@@ -26,7 +26,7 @@ $(function () {
|
||||
table = $("#groupsTable").DataTable({
|
||||
processing: true,
|
||||
ajax: {
|
||||
url: "/api/groups",
|
||||
url: apiUrl + "/groups",
|
||||
error: handleAjaxError,
|
||||
dataSrc: "groups",
|
||||
type: "GET",
|
||||
@@ -261,7 +261,7 @@ function addGroup() {
|
||||
}
|
||||
|
||||
$.ajax({
|
||||
url: "/api/groups",
|
||||
url: apiUrl + "/groups",
|
||||
method: "post",
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
@@ -329,7 +329,7 @@ function editGroup() {
|
||||
utils.disableAll();
|
||||
utils.showAlert("info", "", "Editing group...", oldName);
|
||||
$.ajax({
|
||||
url: "/api/groups/" + oldName,
|
||||
url: apiUrl + "/groups/" + oldName,
|
||||
method: "put",
|
||||
dataType: "json",
|
||||
processData: false,
|
||||
|
||||
Reference in New Issue
Block a user