aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-01-26 11:33:22 +0100
committerGitHub <noreply@github.com>2020-01-26 11:33:22 +0100
commit1410dce2db310e71b5e683b0871c2f28d8807844 (patch)
treec9dc7f2bda10544bacaaa982b94801a5166f9b67 /index.php
parent529fc750b31ce1b55596f8bb0f4377fbe2dcaa94 (diff)
parent20433ea72baded4d696ee8eb83f6b4f315dc21db (diff)
downloadShaarli-1410dce2db310e71b5e683b0871c2f28d8807844.tar.gz
Shaarli-1410dce2db310e71b5e683b0871c2f28d8807844.tar.zst
Shaarli-1410dce2db310e71b5e683b0871c2f28d8807844.zip
Rollback breaking change in REST API routes (#1410)
Rollback breaking change in REST API routes
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');