mute schmute

This commit is contained in:
2025-06-07 12:28:24 +02:00
parent 8e9f0eb1b8
commit 27476fbc1d
4 changed files with 50 additions and 8 deletions

View File

@ -48,8 +48,10 @@ Future<MediaItem> fetchMediaDetail(int itemId) async {
}
Future<bool> login(String username, String password) async {
final Uri url = Uri.parse('https://api.f0ck.me/login');
final response = await http.post(
Uri.parse('https://api.f0ck.me/login'),
url,
body: {'username': username, 'password': password},
);
@ -58,9 +60,9 @@ Future<bool> login(String username, String password) async {
final token = data['token'];
await storage.write(key: "token", value: token);
return true;
} else {
return false;
}
}
}