]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/api/controllers/History.php
Add history entries for API endpoint
[github/shaarli/Shaarli.git] / application / api / controllers / History.php
index c4ff3e5dfecd77ca8724192f5ce3a192d4ab8919..da034eb226eceb276d2c5e65043aceedff0a15d8 100644 (file)
@@ -28,7 +28,7 @@ class History extends ApiController
      */
     public function getHistory($request, $response)
     {
-        $history = (new \History($this->conf->get('resource.history')))->getHistory();
+        $history = $this->history->getHistory();
         $history = array_reverse($history);
 
         // Return history operations from the {offset}th, starting from {since}.