From 891db33ead914486b6f4f7e32ebd3a7f511562e8 Mon Sep 17 00:00:00 2001 From: Christian Weiske Date: Tue, 28 Oct 2014 17:56:55 +0100 Subject: Add hrefs to API responses --- lib/notestorage.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/notestorage.php b/lib/notestorage.php index 621d120..d1fe7e3 100644 --- a/lib/notestorage.php +++ b/lib/notestorage.php @@ -432,7 +432,14 @@ class NoteStorage ) ) ), - 'href' => null,//FIXME + 'href' => $this->urlGen->getAbsoluteURL( + $this->urlGen->linkToRoute( + 'grauphel.gui.note', + array( + 'guid' => $row['note_guid'] + ) + ) + ), ), 'title' => $row['note_title'], ); -- cgit v1.2.3