mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Consistent use of links in transformers.
This commit is contained in:
@@ -49,6 +49,12 @@ class AttachmentTransformer extends TransformerAbstract
|
||||
'notes' => $attachment->notes,
|
||||
'mime' => $attachment->mime,
|
||||
'size' => $attachment->size,
|
||||
'links' => [
|
||||
[
|
||||
'rel' => 'self',
|
||||
'uri' => '/attachment/' . $attachment->id,
|
||||
],
|
||||
]
|
||||
];
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user