X-Git-Url: https://git.cweiske.de/grauphel.git/blobdiff_plain/46a9ff9889466f23c310e2de100d0ae16c5a2a1a..0c9b45d210a5d94b3ba219e32b73233a5a795f61:/controller/guicontroller.php 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) + ), + ) ) );