aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/index.php b/index.php
index 6a82d571..76ad3696 100644
--- a/index.php
+++ b/index.php
@@ -1939,11 +1939,11 @@ $app = new \Slim\App($container);
1939// REST API routes 1939// REST API routes
1940$app->group('/api/v1', function () { 1940$app->group('/api/v1', function () {
1941 $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo')->setName('getInfo'); 1941 $this->get('/info', '\Shaarli\Api\Controllers\Info:getInfo')->setName('getInfo');
1942 $this->get('/bookmarks', '\Shaarli\Api\Controllers\Links:getLinks')->setName('getLinks'); 1942 $this->get('/links', '\Shaarli\Api\Controllers\Links:getLinks')->setName('getLinks');
1943 $this->get('/bookmarks/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:getLink')->setName('getLink'); 1943 $this->get('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:getLink')->setName('getLink');
1944 $this->post('/bookmarks', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink'); 1944 $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink');
1945 $this->put('/bookmarks/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink'); 1945 $this->put('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink');
1946 $this->delete('/bookmarks/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:deleteLink')->setName('deleteLink'); 1946 $this->delete('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:deleteLink')->setName('deleteLink');
1947 1947
1948 $this->get('/tags', '\Shaarli\Api\Controllers\Tags:getTags')->setName('getTags'); 1948 $this->get('/tags', '\Shaarli\Api\Controllers\Tags:getTags')->setName('getTags');
1949 $this->get('/tags/{tagName:[\w]+}', '\Shaarli\Api\Controllers\Tags:getTag')->setName('getTag'); 1949 $this->get('/tags/{tagName:[\w]+}', '\Shaarli\Api\Controllers\Tags:getTag')->setName('getTag');