aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-05-07 15:55:38 +0200
committerGitHub <noreply@github.com>2017-05-07 15:55:38 +0200
commit77de24876ff542e3770aa2845e993c58f87e37df (patch)
tree9eca13b3718eeba2d69fe262a8b6b35ba2596ea5 /index.php
parenteb6e729808e1c3d9787ad1183aa61ab2e375a537 (diff)
parentcf9181dddf8b6113b1b017e4bcb21fac0a0b1c83 (diff)
downloadShaarli-77de24876ff542e3770aa2845e993c58f87e37df.tar.gz
Shaarli-77de24876ff542e3770aa2845e993c58f87e37df.tar.zst
Shaarli-77de24876ff542e3770aa2845e993c58f87e37df.zip
Merge pull request #840 from ArthurHoaro/api/putLink
REST API: implement PUT method
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 76aa1ae0..b8d20055 100644
--- a/index.php
+++ b/index.php
@@ -2251,6 +2251,7 @@ $app->group('/api/v1', function() {
2251 $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks')->setName('getLinks'); 2251 $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks')->setName('getLinks');
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})->add('\Shaarli\Api\ApiMiddleware'); 2255})->add('\Shaarli\Api\ApiMiddleware');
2255 2256
2256$response = $app->run(true); 2257$response = $app->run(true);