diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-01-26 11:33:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-26 11:33:22 +0100 |
commit | 1410dce2db310e71b5e683b0871c2f28d8807844 (patch) | |
tree | c9dc7f2bda10544bacaaa982b94801a5166f9b67 | |
parent | 529fc750b31ce1b55596f8bb0f4377fbe2dcaa94 (diff) | |
parent | 20433ea72baded4d696ee8eb83f6b4f315dc21db (diff) | |
download | Shaarli-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
-rw-r--r-- | index.php | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -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'); |