mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
b12a00c391
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@73509 467b73ca-7a2a-4603-9d3b-597d59a354a9
18 lines
373 B
PHP
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;
|
|
}
|
|
}
|
|
|
|
?>
|