aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2016-12-22 14:36:45 +0100
committerArthurHoaro <arthur@hoa.ro>2017-01-15 13:55:22 +0100
commitc3b00963fe22479e87998c82bc83827a54c8d972 (patch)
tree4c3f47697f8e58e2c60aa94bdcb506c770e4bd5e /index.php
parentfc11ab2f290a3712b766d78fdbcd354625a35d0a (diff)
downloadShaarli-c3b00963fe22479e87998c82bc83827a54c8d972.tar.gz
Shaarli-c3b00963fe22479e87998c82bc83827a54c8d972.tar.zst
Shaarli-c3b00963fe22479e87998c82bc83827a54c8d972.zip
REST API: implement getLinks service
See http://shaarli.github.io/api-documentation/#links-links-collection-get
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 2ed14d4f..ff24ed7e 100644
--- a/index.php
+++ b/index.php
@@ -2232,6 +2232,7 @@ $app = new \Slim\App($container);
2232// REST API routes 2232// REST API routes
2233$app->group('/api/v1', function() { 2233$app->group('/api/v1', function() {
2234 $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo'); 2234 $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo');
2235 $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks');
2235})->add('\Shaarli\Api\ApiMiddleware'); 2236})->add('\Shaarli\Api\ApiMiddleware');
2236 2237
2237$response = $app->run(true); 2238$response = $app->run(true);