mirror of
https://github.com/pi-hole/web.git
synced 2025-12-24 04: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 apiFailure:false, utils:false, initTable:false, updateFtlInfo:false */
|
||||
/* global apiFailure:false, utils:false, apiUrl:false, initTable:false, updateFtlInfo:false */
|
||||
|
||||
var groups = [];
|
||||
|
||||
@@ -39,7 +39,7 @@ function populateGroupSelect(selectEl) {
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
function getGroups(groupSelector) {
|
||||
$.ajax({
|
||||
url: "/api/groups",
|
||||
url: apiUrl + "/groups",
|
||||
type: "GET",
|
||||
dataType: "json",
|
||||
success: function (data) {
|
||||
@@ -79,7 +79,7 @@ function delGroupItems(type, ids, table, listType = undefined) {
|
||||
// Check input validity
|
||||
if (!Array.isArray(ids)) return;
|
||||
|
||||
const url = "/api/" + type + "s:batchDelete";
|
||||
const url = apiUrl + "/" + type + "s:batchDelete";
|
||||
|
||||
// use utils.hexDecode() to decode all clients
|
||||
let idstring = "";
|
||||
|
||||
Reference in New Issue
Block a user