Download note as XML and JSON
[grauphel.git] / controller / guicontroller.php
index 4f74ab53f1fa3e81f9b29e67a4e64f328b79463f..fc97b049a7b2bd687849ba92015b6c87604fcc47 100644 (file)
@@ -96,6 +96,16 @@ class GuiController extends Controller
                 'note-content' => $converter->convert(
                     $note->{'note-content'}
                 ),
                 '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)
+                    ),
+                )
             )
         );
 
             )
         );