aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/index.php b/index.php
index ddd5dbf5..29d67f62 100644
--- a/index.php
+++ b/index.php
@@ -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