]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #731 from virtualtam/fix/api/namespaces
authorVirtualTam <virtualtam+github@flibidi.net>
Tue, 3 Jan 2017 15:21:18 +0000 (16:21 +0100)
committerGitHub <noreply@github.com>
Tue, 3 Jan 2017 15:21:18 +0000 (16:21 +0100)
API: fix Slim namespaces

index.php

index a4d7d7cac3e7269ef96ace736950cb241a3a6ad1..bb1debd3f515bcd5bf2a3b892b3b60890812c092 100644 (file)
--- a/index.php
+++ b/index.php
@@ -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: