aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorVirtualTam <virtualtam@flibidi.net>2017-01-02 18:37:08 +0100
committerVirtualTam <virtualtam@flibidi.net>2017-01-02 18:37:08 +0100
commit465b1c4090c4a83f11b2bb30405037fb0aa4cf8c (patch)
treec907bc47696fb59df664b72aa82f18f189a02442 /index.php
parente0177549c760b143efdd17b1579e0c0199dce939 (diff)
downloadShaarli-465b1c4090c4a83f11b2bb30405037fb0aa4cf8c.tar.gz
Shaarli-465b1c4090c4a83f11b2bb30405037fb0aa4cf8c.tar.zst
Shaarli-465b1c4090c4a83f11b2bb30405037fb0aa4cf8c.zip
API: fix Slim namespaces
Signed-off-by: VirtualTam <virtualtam@flibidi.net>
Diffstat (limited to 'index.php')
-rw-r--r--index.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/index.php b/index.php
index dd9b48bd..a970e29f 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: