Added api for sending feedback

This commit is contained in:
2024-02-09 16:35:47 +01:00
parent da28a13268
commit 3681fcdae0
7 changed files with 112 additions and 18 deletions

View File

@ -1,5 +1,4 @@
import 'dart:convert';
import 'dart:developer';
import 'package:http/http.dart' as http;
import '../apiError.dart';
@ -23,7 +22,7 @@ abstract class MhslApi<T> extends ApiRequest {
}
if(data.statusCode > 299) {
log("Non 200 Status code from mhsl services: $subpath: ${data.statusCode}");
throw ApiError("Non 200 Status code from mhsl services: $subpath: ${data.statusCode}");
}
return assemble(utf8.decode(data.bodyBytes));