From 4e87b9612d7cd49d9d548a86398630c5c6563f6a Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 18 Dec 2018 17:57:59 +0100 Subject: [PATCH] use new Slim version --- restapi/index.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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