aboutsummaryrefslogtreecommitdiffhomepage
path: root/application/api/controllers/ApiController.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-08-29 11:45:08 +0200
committerArthurHoaro <arthur@hoa.ro>2020-08-29 11:45:08 +0200
commitb06fc28aa32f477e1785cd998385fdb490bc5ebf (patch)
tree65daa380574c5452a3e3c5679ea438115b4fb3bb /application/api/controllers/ApiController.php
parentbea062149ebcb4663861edb1cc0a32faf85b273f (diff)
downloadShaarli-b06fc28aa32f477e1785cd998385fdb490bc5ebf.tar.gz
Shaarli-b06fc28aa32f477e1785cd998385fdb490bc5ebf.tar.zst
Shaarli-b06fc28aa32f477e1785cd998385fdb490bc5ebf.zip
REST API: allow override of creation and update dates
Note that if they're not provided, default behaviour will apply: creation and update dates will be autogenerated, and not empty. Fixes #1223
Diffstat (limited to 'application/api/controllers/ApiController.php')
-rw-r--r--application/api/controllers/ApiController.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/application/api/controllers/ApiController.php b/application/api/controllers/ApiController.php
index c4b3d0c3..88a845eb 100644
--- a/application/api/controllers/ApiController.php
+++ b/application/api/controllers/ApiController.php
@@ -4,6 +4,7 @@ namespace Shaarli\Api\Controllers;
4 4
5use Shaarli\Bookmark\BookmarkServiceInterface; 5use Shaarli\Bookmark\BookmarkServiceInterface;
6use Shaarli\Config\ConfigManager; 6use Shaarli\Config\ConfigManager;
7use Shaarli\History;
7use Slim\Container; 8use Slim\Container;
8 9
9/** 10/**
@@ -31,7 +32,7 @@ abstract class ApiController
31 protected $bookmarkService; 32 protected $bookmarkService;
32 33
33 /** 34 /**
34 * @var HistoryController 35 * @var History
35 */ 36 */
36 protected $history; 37 protected $history;
37 38