Solian/lib/providers/content/attachment_list.dart
2024-05-18 22:23:36 +08:00

12 lines
303 B
Dart

import 'package:get/get.dart';
import 'package:solian/services.dart';
class AttachmentListProvider extends GetConnect {
@override
void onInit() {
httpClient.baseUrl = ServiceFinder.services['paperclip'];
}
Future<Response> getMetadata(String uuid) => get('/api/attachments/$uuid/meta');
}