2013-03-26 16:38:26 +01:00

26 lines
542 B
PHP

<?php
namespace okapi\views\index;
use Exception;
use okapi\Okapi;
use okapi\Settings;
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(Settings::get('SITE_URL').
"okapi/introduction.html");
}
}