aboutsummaryrefslogtreecommitdiffhomepage
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/index.php b/index.php
index ac0baf7d..1480bbc5 100644
--- a/index.php
+++ b/index.php
@@ -1121,7 +1121,7 @@ function renderPage($conf, $pluginManager, $LINKSDB, $history, $sessionManager,
1121 // Linkdate is kept here to: 1121 // Linkdate is kept here to:
1122 // - use the same permalink for notes as they're displayed when creating them 1122 // - use the same permalink for notes as they're displayed when creating them
1123 // - let users hack creation date of their posts 1123 // - let users hack creation date of their posts
1124 // See: https://shaarli.readthedocs.io/en/master/Various-hacks/#changing-the-timestamp-for-a-shaare 1124 // See: https://shaarli.readthedocs.io/en/master/guides/various-hacks/#changing-the-timestamp-for-a-shaare
1125 $linkdate = escape($_POST['lf_linkdate']); 1125 $linkdate = escape($_POST['lf_linkdate']);
1126 if (isset($LINKSDB[$id])) { 1126 if (isset($LINKSDB[$id])) {
1127 // Edit 1127 // Edit
@@ -1845,6 +1845,12 @@ $app->group('/api/v1', function() {
1845 $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink'); 1845 $this->post('/links', '\Shaarli\Api\Controllers\Links:postLink')->setName('postLink');
1846 $this->put('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink'); 1846 $this->put('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:putLink')->setName('putLink');
1847 $this->delete('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:deleteLink')->setName('deleteLink'); 1847 $this->delete('/links/{id:[\d]+}', '\Shaarli\Api\Controllers\Links:deleteLink')->setName('deleteLink');
1848
1849 $this->get('/tags', '\Shaarli\Api\Controllers\Tags:getTags')->setName('getTags');
1850 $this->get('/tags/{tagName:[\w]+}', '\Shaarli\Api\Controllers\Tags:getTag')->setName('getTag');
1851 $this->put('/tags/{tagName:[\w]+}', '\Shaarli\Api\Controllers\Tags:putTag')->setName('putTag');
1852 $this->delete('/tags/{tagName:[\w]+}', '\Shaarli\Api\Controllers\Tags:deleteTag')->setName('deleteTag');
1853
1848 $this->get('/history', '\Shaarli\Api\Controllers\History:getHistory')->setName('getHistory'); 1854 $this->get('/history', '\Shaarli\Api\Controllers\History:getHistory')->setName('getHistory');
1849})->add('\Shaarli\Api\ApiMiddleware'); 1855})->add('\Shaarli\Api\ApiMiddleware');
1850 1856