Merge pull request #731 from virtualtam/fix/api/namespaces
API: fix Slim namespaces
This commit is contained in:
commit
67a1d5d823
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue