mirror of
https://github.com/pi-hole/web.git
synced 2026-04-27 04:04:00 +01:00
Add API support for list actions
Signed-off-by: Mike Souza <contact@michael-souza.com>
This commit is contained in:
@@ -7,12 +7,15 @@
|
||||
* Please see LICENSE file for your rights under this license. */ ?>
|
||||
|
||||
<?php
|
||||
require('auth.php');
|
||||
require_once('auth.php');
|
||||
|
||||
$type = $_POST['list'];
|
||||
|
||||
// All of the verification for list editing
|
||||
list_verify($type);
|
||||
// Perform all of the verification for list editing
|
||||
// when NOT invoked and authenticated from API
|
||||
if (!$api) {
|
||||
list_verify($type);
|
||||
}
|
||||
|
||||
switch($type) {
|
||||
case "white":
|
||||
|
||||
Reference in New Issue
Block a user