curl --verbose -k -X POST -d https://server-name:8090/token
{
"organizationIds":[
"null"
],
"returnAdditionalInfo":true,
"includeDisabled":true,
"returnExternalData":[
"null"
]
}
<?php
$url = $_GET['url'] ?? '';
$handler_file = match($url) {
"/" => "apps/index.php",
"/cameras" => "apps/cameras/index.php",
default => "errors/404.html",
};
if(is_file($handler_file)) {
require($handler_file);
exit;
}
GET: /cameras/camera/<id>
?GET: /route
и POST: /route
?
как написали выше нужно ещё конкретно включить pdo_mysql (a.k.a. драйвер mysql для PDO)