diff --git a/restapi/index.php b/restapi/index.php index 21ea8b1b4..d9bcb933f 100644 --- a/restapi/index.php +++ b/restapi/index.php @@ -2016,8 +2016,9 @@ function echoData() { /* {{{ */ } /* }}} */ //$app = new Slim(array('mode'=>'development', '_session.handler'=>null)); -$app = new \Slim\Slim(array('mode'=>'production', '_session.handler'=>null)); +$app = new \Slim\App(/*array('mode'=>'production', '_session.handler'=>null)*/); +/* $app->configureMode('production', function () use ($app) { $app->config(array( 'log.enable' => false, @@ -2031,7 +2032,7 @@ $app->configureMode('development', function () use ($app) { 'debug' => true )); }); - + */ // use post for create operation // use get for retrieval operation // use put for update operation