From 465b1c4090c4a83f11b2bb30405037fb0aa4cf8c Mon Sep 17 00:00:00 2001 From: VirtualTam Date: Mon, 2 Jan 2017 18:37:08 +0100 Subject: [PATCH] API: fix Slim namespaces Signed-off-by: VirtualTam --- index.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.php b/index.php index dd9b48bd..a970e29f 100644 --- a/index.php +++ b/index.php @@ -2231,8 +2231,8 @@ function resizeImage($filepath) // 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: