doc.silverstripe.org/sapphire/api/VersionedRestfulServer.php
2011-04-10 21:53:26 +00:00

18 lines
373 B
PHP

<?php
/**
* Simple wrapper to allow access to the live site via REST
*
* @package sapphire
* @subpackage integration
*/
class VersionedRestfulServer extends Controller {
function handleRequest($request) {
Versioned::reading_stage('Live');
$restfulserver = new RestfulServer();
$response = $restfulserver->handleRequest($request);
return $response;
}
}
?>