diff options
author | VirtualTam <virtualtam+github@flibidi.net> | 2017-01-03 16:21:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-03 16:21:18 +0100 |
commit | 67a1d5d8237d200e6b85a4868f3b560ade5607b4 (patch) | |
tree | 9ce661bf429a28c7116f260fe8ecfa26e01e38a1 /index.php | |
parent | f3ca027d3aeca125f4b754a2e7d4cbc79d00fe70 (diff) | |
parent | 465b1c4090c4a83f11b2bb30405037fb0aa4cf8c (diff) | |
download | Shaarli-67a1d5d8237d200e6b85a4868f3b560ade5607b4.tar.gz Shaarli-67a1d5d8237d200e6b85a4868f3b560ade5607b4.tar.zst Shaarli-67a1d5d8237d200e6b85a4868f3b560ade5607b4.zip |
Merge pull request #731 from virtualtam/fix/api/namespaces
API: fix Slim namespaces
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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: |