aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-01-15 16:49:50 +0100
committerGitHub <noreply@github.com>2017-01-15 16:49:50 +0100
commit9977c418d6d0de9e22e4ec276e7d476e184b5d01 (patch)
treeb24cef1d52ea5451080534c98e177554d679947d /index.php
parent5fbab3edb300ad770d88f40ba1cc50d5b93a5bb8 (diff)
parentc3b00963fe22479e87998c82bc83827a54c8d972 (diff)
downloadShaarli-9977c418d6d0de9e22e4ec276e7d476e184b5d01.tar.gz
Shaarli-9977c418d6d0de9e22e4ec276e7d476e184b5d01.tar.zst
Shaarli-9977c418d6d0de9e22e4ec276e7d476e184b5d01.zip
Merge pull request #727 from ArthurHoaro/api/getlinks
REST API: implement getLinks service
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);