Files
geodb/geoapi/service/pis/index.php
2013-07-01 17:47:45 +02:00

17 lines
341 B
PHP

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