Version: current

     1 <?php
     2 /**
     3  * Simple wrapper to allow access to the live site via REST
     4  *
     5  * @package sapphire
     6  * @subpackage integration
     7  */
     8 class VersionedRestfulServer extends Controller {
     9     function handleRequest($request) {
    10         Versioned::reading_stage('Live');
    11         $restfulserver = new RestfulServer();
    12         $response = $restfulserver->handleRequest($request);
    13         return $response;
    14     }
    15 }
    16
    17 ?>
    18

[Raise a SilverStripe Framework issue/bug](https://github.com/silverstripe/silverstripe-framework/issues/new)
- [Raise a SilverStripe CMS issue/bug](https://github.com/silverstripe/silverstripe-cms/issues/new)
- Please use the Silverstripe Forums to ask development related questions. -