diff options
author | ArthurHoaro <arthur@hoa.ro> | 2018-07-10 18:06:26 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-10 18:06:26 +0200 |
commit | c2c2338f9adecf971d01d7abcd09bab6275a9706 (patch) | |
tree | 9c8fe4d6c1ca1d5667b6bce786d872471322fac1 /index.php | |
parent | edb4a4d9c9fbc01d67ee8d095fe26648714e2285 (diff) | |
parent | 6410bf96707e381685b7dafbefcccd83ea762934 (diff) | |
download | Shaarli-c2c2338f9adecf971d01d7abcd09bab6275a9706.tar.gz Shaarli-c2c2338f9adecf971d01d7abcd09bab6275a9706.tar.zst Shaarli-c2c2338f9adecf971d01d7abcd09bab6275a9706.zip |
Merge pull request #1141 from ArthurHoaro/api/tags
Implements Tags endpoints for Shaarli's REST API
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -2176,6 +2176,12 @@ $app->group('/api/v1', function() { | |||
2176 | $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink'); | 2176 | $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink'); |
2177 | $this->put('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink'); | 2177 | $this->put('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink'); |
2178 | $this->delete('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:deleteLink')->setName('deleteLink'); | 2178 | $this->delete('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:deleteLink')->setName('deleteLink'); |
2179 | |||
2180 | $this->get('/tags', '\Shaarli\Api\Controllers\Tags:getTags')->setName('getTags'); | ||
2181 | $this->get('/tags/{tagName:[\w]+}', '\Shaarli\Api\Controllers\Tags:getTag')->setName('getTag'); | ||
2182 | $this->put('/tags/{tagName:[\w]+}', '\Shaarli\Api\Controllers\Tags:putTag')->setName('putTag'); | ||
2183 | $this->delete('/tags/{tagName:[\w]+}', '\Shaarli\Api\Controllers\Tags:deleteTag')->setName('deleteTag'); | ||
2184 | |||
2179 | $this->get('/history', '\Shaarli\Api\Controllers\History:getHistory')->setName('getHistory'); | 2185 | $this->get('/history', '\Shaarli\Api\Controllers\History:getHistory')->setName('getHistory'); |
2180 | })->add('\Shaarli\Api\ApiMiddleware'); | 2186 | })->add('\Shaarli\Api\ApiMiddleware'); |
2181 | 2187 | ||