aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorVirtualTam <virtualtam+github@flibidi.net>2017-01-03 16:21:18 +0100
committerGitHub <noreply@github.com>2017-01-03 16:21:18 +0100
commit67a1d5d8237d200e6b85a4868f3b560ade5607b4 (patch)
tree9ce661bf429a28c7116f260fe8ecfa26e01e38a1
parentf3ca027d3aeca125f4b754a2e7d4cbc79d00fe70 (diff)
parent465b1c4090c4a83f11b2bb30405037fb0aa4cf8c (diff)
downloadShaarli-67a1d5d8237d200e6b85a4868f3b560ade5607b4.tar.gz
Shaarli-67a1d5d8237d200e6b85a4868f3b560ade5607b4.tar.zst
Shaarli-67a1d5d8237d200e6b85a4868f3b560ade5607b4.zip
Merge pull request #731 from virtualtam/fix/api/namespaces
API: fix Slim namespaces
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index a4d7d7ca..bb1debd3 100644
--- a/index.php
+++ b/index.php
@@ -2231,8 +2231,8 @@ $app = new \Slim\App($container);
2231 2231
2232// REST API routes 2232// REST API routes
2233$app->group('/api/v1', function() { 2233$app->group('/api/v1', function() {
2234 $this->get('/info', '\Api\Controllers\Info:getInfo'); 2234 $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo');
2235})->add('\Api\ApiMiddleware'); 2235})->add('\Shaarli\Api\ApiMiddleware');
2236 2236
2237$response = $app->run(true); 2237$response = $app->run(true);
2238// Hack to make Slim and Shaarli router work together: 2238// Hack to make Slim and Shaarli router work together: