aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-07 16:02:14 +0200
committerGitHub <noreply@github.com>2017-05-07 16:02:14 +0200
commitb8fcb7d4403a344158ab5d2c8979bdd002e6001d (patch)
tree2ac6304cfdef1322c19bd47ba972e8894d98ab68 /index.php
parent77de24876ff542e3770aa2845e993c58f87e37df (diff)
parent0843848c1d18e92504c43d181063a2012f8fd5b9 (diff)
downloadShaarli-b8fcb7d4403a344158ab5d2c8979bdd002e6001d.tar.gz
Shaarli-b8fcb7d4403a344158ab5d2c8979bdd002e6001d.tar.zst
Shaarli-b8fcb7d4403a344158ab5d2c8979bdd002e6001d.zip
Merge pull request #856 from ArthurHoaro/api/delete-link
API: add DELETE endpoint
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 b8d20055..02fe2577 100644
--- a/index.php
+++ b/index.php
@@ -2252,6 +2252,7 @@ $app->group('/api/v1', function() {
2252 $this->get('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:getLink')->setName('getLink'); 2252 $this->get('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:getLink')->setName('getLink');
2253 $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink'); 2253 $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink');
2254 $this->put('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink'); 2254 $this->put('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink');
2255 $this->delete('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:deleteLink')->setName('deleteLink');
2255})->add('\Shaarli\Api\ApiMiddleware'); 2256})->add('\Shaarli\Api\ApiMiddleware');
2256 2257
2257$response = $app->run(true); 2258$response = $app->run(true);