Merge pull request #731 from virtualtam/fix/api/namespaces

API: fix Slim namespaces
This commit is contained in:
VirtualTam 2017-01-03 16:21:18 +01:00 committed by GitHub
commit 67a1d5d823

View file

@ -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: