diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-01-15 16:49:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-15 16:49:50 +0100 |
commit | 9977c418d6d0de9e22e4ec276e7d476e184b5d01 (patch) | |
tree | b24cef1d52ea5451080534c98e177554d679947d /index.php | |
parent | 5fbab3edb300ad770d88f40ba1cc50d5b93a5bb8 (diff) | |
parent | c3b00963fe22479e87998c82bc83827a54c8d972 (diff) | |
download | Shaarli-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.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |