]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - index.php
Merge pull request #840 from ArthurHoaro/api/putLink
[github/shaarli/Shaarli.git] / index.php
index 76aa1ae0efbc1c9d5945b34b29c23ae576b06e34..b8d20055016bb0a1c8e1cfb935cb6111ae5e522f 100644 (file)
--- a/index.php
+++ b/index.php
@@ -2251,6 +2251,7 @@ $app->group('/api/v1', function() {
     $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks')->setName('getLinks');
     $this->get('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:getLink')->setName('getLink');
     $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink');
+    $this->put('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink');
 })->add('\Shaarli\Api\ApiMiddleware');
 
 $response = $app->run(true);