Merge pull request #1387 from pi-hole/new/api_add_sub_get_lists

(Re-)Add API endpoints for list manipulations
This commit is contained in:
Adam Warner
2020-05-29 23:30:40 +01:00
committed by GitHub
8 changed files with 137 additions and 140 deletions

View File

@@ -93,9 +93,15 @@ function updateTopLists() {
function add(domain, list) {
var token = $("#token").text();
$.ajax({
url: "scripts/pi-hole/php/add.php",
url: "scripts/pi-hole/php/groups.php",
method: "post",
data: { domain: domain, list: list, token: token },
data: {
domain: domain,
list: list,
token: token,
action: "add_domain",
comment: "Added from Audit Log"
},
success: function () {
updateTopLists();
},