aboutsummaryrefslogtreecommitdiff
path: root/lib/notestorage.php
diff options
context:
space:
mode:
authorChristian Weiske <cweiske@cweiske.de>2014-10-28 17:56:55 +0100
committerChristian Weiske <cweiske@cweiske.de>2014-10-28 17:56:55 +0100
commit891db33ead914486b6f4f7e32ebd3a7f511562e8 (patch)
tree297174522979f0982a983d3e2f8d308563db82a0 /lib/notestorage.php
parent35e58ea1056480418d36b08a98f288d583805b23 (diff)
downloadgrauphel-891db33ead914486b6f4f7e32ebd3a7f511562e8.tar.gz
grauphel-891db33ead914486b6f4f7e32ebd3a7f511562e8.zip
Add hrefs to API responses
Diffstat (limited to 'lib/notestorage.php')
-rw-r--r--lib/notestorage.php9
1 files changed, 8 insertions, 1 deletions
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'],
);