This commit is contained in:
bossanyit
2023-05-09 07:53:00 +02:00
parent 928396112a
commit adddf41a01
2 changed files with 8 additions and 4 deletions
+4 -4
View File
@@ -63,10 +63,10 @@ class APIClient with Common, Logging {
}
Future<String> post(String endPoint, String body) async {
/*if ( kIsWeb ) {
if (kIsWeb) {
APIWebClient webClient = APIWebClient();
return webClient.post(endPoint, body);
}*/
}
final url = Cache().getBaseUrl() + endPoint;
log(" ------------ http/post body $body - url: $url ");
try {
@@ -106,10 +106,10 @@ class APIClient with Common, Logging {
}
Future<String> get(String endPoint, String param) async {
/*if ( kIsWeb ) {
if (kIsWeb) {
APIWebClient webClient = APIWebClient();
return webClient.get(endPoint, param);
}*/
}
final url = Cache().getBaseUrl() + endPoint + param;
try {
log("-------- API get $url");