From: VirtualTam Date: Mon, 2 Jan 2017 17:37:08 +0000 (+0100) Subject: API: fix Slim namespaces X-Git-Tag: v0.9.0~81^2 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=465b1c4090c4a83f11b2bb30405037fb0aa4cf8c;p=github%2Fshaarli%2FShaarli.git API: fix Slim namespaces Signed-off-by: VirtualTam --- diff --git a/index.php b/index.php index dd9b48bd..a970e29f 100644 --- a/index.php +++ b/index.php @@ -2231,8 +2231,8 @@ $app = new \Slim\App($container); // REST API routes $app->group('/api/v1', function() { - $this->get('/info', '\Api\Controllers\Info:getInfo'); -})->add('\Api\ApiMiddleware'); + $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo'); +})->add('\Shaarli\Api\ApiMiddleware'); $response = $app->run(true); // Hack to make Slim and Shaarli router work together: