aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/index.php b/index.php
index a54dfb1d..beb1cbca 100644
--- a/index.php
+++ b/index.php
@@ -2237,6 +2237,7 @@ $app = new \Slim\App($container);
2237// REST API routes 2237// REST API routes
2238$app->group('/api/v1', function() { 2238$app->group('/api/v1', function() {
2239 $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo'); 2239 $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo');
2240 $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks');
2240})->add('\Shaarli\Api\ApiMiddleware'); 2241})->add('\Shaarli\Api\ApiMiddleware');
2241 2242
2242$response = $app->run(true); 2243$response = $app->run(true);