18 lines
342 B
PHP
18 lines
342 B
PHP
<?php
|
|
|
|
include_once "../../global.inc.php";
|
|
require_once PATH_API . "/PssApi.php";
|
|
|
|
$headers = apache_request_headers();
|
|
// instance a new api
|
|
$app = new \api\PssApi($headers);
|
|
|
|
// HTTP-Get-Method
|
|
$app->get(\api\PssApi::$routeParameterPids, function ($pid) use ($app) {
|
|
echo $app->sendPssQuery($pid);
|
|
});
|
|
|
|
$app->run();
|
|
|
|
?>
|