Files
oc-server3/htdocs/okapi/views/index.php
T
2012-08-19 18:44:46 +02:00

25 lines
530 B
PHP

<?php
namespace okapi\views\index;
use Exception;
use okapi\Okapi;
use okapi\OkapiRequest;
use okapi\OkapiRedirectResponse;
use okapi\ParamMissing;
use okapi\InvalidParam;
use okapi\OkapiServiceRunner;
use okapi\OkapiInternalRequest;
class View
{
public static function call()
{
# This is called when someone displays "http://../okapi/" (with no
# html path at the end). We will redirect to the introduction page.
return new OkapiRedirectResponse($GLOBALS['absolute_server_URI'].
"okapi/introduction.html");
}
}