aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-04-01 11:11:25 +0200
committerArthurHoaro <arthur@hoa.ro>2017-05-07 15:49:16 +0200
commitcf9181dddf8b6113b1b017e4bcb21fac0a0b1c83 (patch)
treed8426d3b7b61dbd5f9d849e1114c3ee64d102db3 /index.php
parent4b385d6c344c4a0a0b424622833bc72974c21cb5 (diff)
downloadShaarli-cf9181dddf8b6113b1b017e4bcb21fac0a0b1c83.tar.gz
Shaarli-cf9181dddf8b6113b1b017e4bcb21fac0a0b1c83.tar.zst
Shaarli-cf9181dddf8b6113b1b017e4bcb21fac0a0b1c83.zip
REST API: implement PUT method
* Related to #609 * Documentation: http://shaarli.github.io/api-documentation/#links-link-put
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 863d5093..d6642b68 100644
--- a/index.php
+++ b/index.php
@@ -2246,6 +2246,7 @@ $app->group('/api/v1', function() {
2246 $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks')->setName('getLinks'); 2246 $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks')->setName('getLinks');
2247 $this->get('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:getLink')->setName('getLink'); 2247 $this->get('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:getLink')->setName('getLink');
2248 $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink'); 2248 $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink');
2249 $this->put('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink');
2249})->add('\Shaarli\Api\ApiMiddleware'); 2250})->add('\Shaarli\Api\ApiMiddleware');
2250 2251
2251$response = $app->run(true); 2252$response = $app->run(true);