Consistent use of links in transformers.

This commit is contained in:
James Cole
2018-02-07 11:20:24 +01:00
parent 909dc212fb
commit f445a95c26
4 changed files with 58 additions and 9 deletions

View File

@@ -48,6 +48,12 @@ class NoteTransformer extends TransformerAbstract
'title' => $note->title,
'text' => $note->text,
'markdown' => $converter->convertToHtml($note->text),
'links' => [
[
'rel' => 'self',
'uri' => '/note/' . $note->id,
],
]
];
}