API: fix Slim namespaces
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
This commit is contained in:
parent
e0177549c7
commit
465b1c4090
1 changed files with 2 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue