API: fix Slim namespaces

Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
VirtualTam 2017-01-02 18:37:08 +01:00
parent e0177549c7
commit 465b1c4090

View file

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