Add API support for list actions

Signed-off-by: Mike Souza <contact@michael-souza.com>
This commit is contained in:
Mike Souza
2018-08-26 10:42:32 -04:00
parent 81561f5da5
commit 203d41103a
4 changed files with 42 additions and 7 deletions

View File

@@ -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":