Solian/lib/providers/content/post_explore.dart
2024-05-18 18:17:16 +08:00

12 lines
309 B
Dart

import 'package:get/get.dart';
import 'package:solian/services.dart';
class PostExploreProvider extends GetConnect {
@override
void onInit() {
httpClient.baseUrl = ServiceFinder.services['interactive'];
}
Future<Response> listPost(int page) => get('/api/feed?take=${10}&offset=${page * 10}');
}