fetch only sfw

This commit is contained in:
Flummi 2022-05-29 15:14:58 +02:00
parent e13c75f36c
commit eb72ebe8c8

View File

@ -3,7 +3,7 @@ import 'dart:convert';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;
Future<List<Item>> fetchDataFromApi() async { Future<List<Item>> fetchDataFromApi() async {
final response = await http.get(Uri.parse('https://f0ck.dev/api/v2/items/get?mode=3')); final response = await http.get(Uri.parse('https://f0ck.dev/api/v2/items/get?mode=0'));
if(response.statusCode == 200) { if(response.statusCode == 200) {
List jsonresponse = json.decode(response.body)['items']; List jsonresponse = json.decode(response.body)['items'];