json-api/listid.php

15 lines
385 B
PHP
Raw Permalink Normal View History

2019-09-14 17:38:35 +02:00
<?php
require_once 'api/listid.php';
require_once 'shared/main.php';
$search = isset($_GET['search']) ? $_GET['search'] : null;
$sortByDate = isset($_GET['sortByDate']) ? $_GET['sortByDate'] : false;
header('Content-Type: application/json');
$apiResponse = uupListIds($search, $sortByDate);
if(isset($apiResponse['error']))
http_response_code(400);
sendResponse($apiResponse);