mirror of
https://git.uupdump.net/uup-dump/json-api.git
synced 2025-07-01 19:19:54 +09:00
Initial commit
This commit is contained in:
14
listid.php
Normal file
14
listid.php
Normal file
@ -0,0 +1,14 @@
|
||||
<?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);
|
Reference in New Issue
Block a user