diff options
author | ArthurHoaro <arthur@hoa.ro> | 2017-05-07 16:02:14 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-07 16:02:14 +0200 |
commit | b8fcb7d4403a344158ab5d2c8979bdd002e6001d (patch) | |
tree | 2ac6304cfdef1322c19bd47ba972e8894d98ab68 /index.php | |
parent | 77de24876ff542e3770aa2845e993c58f87e37df (diff) | |
parent | 0843848c1d18e92504c43d181063a2012f8fd5b9 (diff) | |
download | Shaarli-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.php | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |