aboutsummaryrefslogtreecommitdiff
path: root/controller/guicontroller.php
diff options
context:
space:
mode:
Diffstat (limited to 'controller/guicontroller.php')
-rw-r--r--controller/guicontroller.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/controller/guicontroller.php b/controller/guicontroller.php
index 4f74ab5..fc97b04 100644
--- a/controller/guicontroller.php
+++ b/controller/guicontroller.php
@@ -96,6 +96,16 @@ class GuiController extends Controller
'note-content' => $converter->convert(
$note->{'note-content'}
),
+ 'links' => array(
+ 'json' => $this->urlGen->linkToRoute(
+ 'grauphel.api.note', array(
+ 'guid' => $guid, 'username' => $this->user->getUid()
+ )
+ ),
+ 'xml' => $this->urlGen->linkToRoute(
+ 'grauphel.notes.xml', array('guid' => $guid)
+ ),
+ )
)
);