14 lines
301 B
PHP
14 lines
301 B
PHP
|
<?php
|
||
|
require_once 'api/listlangs.php';
|
||
|
require_once 'shared/main.php';
|
||
|
|
||
|
$updateId = isset($_GET['id']) ? $_GET['id'] : null;
|
||
|
|
||
|
header('Content-Type: application/json');
|
||
|
|
||
|
$apiResponse = uupListLangs($updateId);
|
||
|
if(isset($apiResponse['error']))
|
||
|
http_response_code(400);
|
||
|
|
||
|
sendResponse($apiResponse);
|