mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
08a5a7c387
git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@72803 467b73ca-7a2a-4603-9d3b-597d59a354a9
16 lines
322 B
PHP
16 lines
322 B
PHP
<?php
|
|
|
|
/**
|
|
* Simple wrapper to allow access to the live site via REST
|
|
*/
|
|
class VersionedRestfulServer extends Controller {
|
|
function handleRequest($request) {
|
|
Versioned::reading_stage('Live');
|
|
$restfulserver = new RestfulServer();
|
|
$response = $restfulserver->handleRequest($request);
|
|
return $response;
|
|
}
|
|
}
|
|
|
|
?>
|