diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-10-27 23:16:15 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-10-27 23:16:15 +0100 |
| commit | 0c9b45d210a5d94b3ba219e32b73233a5a795f61 (patch) | |
| tree | b49b11b52c475e04405486775837cdbe24a54a10 /controller/guicontroller.php | |
| parent | 46a9ff9889466f23c310e2de100d0ae16c5a2a1a (diff) | |
| download | grauphel-0c9b45d210a5d94b3ba219e32b73233a5a795f61.tar.gz grauphel-0c9b45d210a5d94b3ba219e32b73233a5a795f61.zip | |
Download note as XML and JSON
Diffstat (limited to 'controller/guicontroller.php')
| -rw-r--r-- | controller/guicontroller.php | 10 |
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) + ), + ) ) ); |
