diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2014-10-28 17:56:55 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2014-10-28 17:56:55 +0100 |
| commit | 891db33ead914486b6f4f7e32ebd3a7f511562e8 (patch) | |
| tree | 297174522979f0982a983d3e2f8d308563db82a0 /controller/apicontroller.php | |
| parent | 35e58ea1056480418d36b08a98f288d583805b23 (diff) | |
| download | grauphel-891db33ead914486b6f4f7e32ebd3a7f511562e8.tar.gz grauphel-891db33ead914486b6f4f7e32ebd3a7f511562e8.zip | |
Add hrefs to API responses
Diffstat (limited to 'controller/apicontroller.php')
| -rw-r--r-- | controller/apicontroller.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/controller/apicontroller.php b/controller/apicontroller.php index 39de60d..90c036f 100644 --- a/controller/apicontroller.php +++ b/controller/apicontroller.php @@ -119,7 +119,7 @@ class ApiController extends Controller 'grauphel.api.user', array('username' => $username) ) ), - 'href' => null,//FIXME + 'href' => null, ); } @@ -167,7 +167,9 @@ class ApiController extends Controller 'grauphel.api.notes', array('username' => $username) ) ), - 'href' => null, + 'href' => $this->deps->urlGen->getAbsoluteURL( + $this->deps->urlGen->linkToRoute('grauphel.gui.index') + ), ), 'latest-sync-revision' => $syncdata->latestSyncRevision, 'current-sync-guid' => $syncdata->currentSyncGuid, |
