Files
geodb/geoapi/service/pss/index.php
2013-07-01 18:54:59 +02:00

19 lines
364 B
PHP

<?php
include_once "../../global.inc.php";
require_once PATH_API . "/PssApi.php";
// get reguest header
$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();
?>