Better attachment management

This commit is contained in:
2024-05-20 23:11:26 +08:00
parent a011278fae
commit ff740aab9b
11 changed files with 383 additions and 95 deletions

View File

@ -12,7 +12,7 @@ class AttachmentItem extends StatelessWidget {
return Hero(
tag: Key('a${item.uuid}'),
child: Image.network(
'${ServiceFinder.services['paperclip']}/api/attachments/${item.uuid}',
'${ServiceFinder.services['paperclip']}/api/attachments/${item.id}',
fit: BoxFit.cover,
),
);

View File

@ -7,5 +7,5 @@ class AttachmentListProvider extends GetConnect {
httpClient.baseUrl = ServiceFinder.services['paperclip'];
}
Future<Response> getMetadata(String uuid) => get('/api/attachments/$uuid/meta');
Future<Response> getMetadata(int id) => get('/api/attachments/$id/meta');
}