mirror of
https://github.com/pi-hole/web.git
synced 2025-12-20 10:48:26 +00:00
27 lines
655 B
JavaScript
27 lines
655 B
JavaScript
/* Pi-hole: A black hole for Internet advertisements
|
|
* (c) 2023 Pi-hole, LLC (https://pi-hole.net)
|
|
* Network-wide ad blocking via your own hardware.
|
|
*
|
|
* This file is copyright under the latest version of the EUPL.
|
|
* Please see LICENSE file for your rights under this license. */
|
|
|
|
/* global apiFailure:false */
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
var groups = [];
|
|
|
|
// eslint-disable-next-line no-unused-vars
|
|
function getGroups() {
|
|
$.ajax({
|
|
url: "/api/groups",
|
|
type: "GET",
|
|
dataType: "json",
|
|
success: function (data) {
|
|
groups = data.groups;
|
|
},
|
|
error: function (data) {
|
|
apiFailure(data);
|
|
},
|
|
});
|
|
}
|