From adddf41a01bc4e60b9eead2ee4d2b1a90ab67fa2 Mon Sep 17 00:00:00 2001 From: bossanyit Date: Tue, 9 May 2023 07:53:00 +0200 Subject: [PATCH] v1.0.28 --- README.md | 4 ++++ lib/service/api.dart | 8 ++++---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 329c02c..615056e 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,9 @@ Workout Test and Diet 4 You Common Util Functions +### Version 1.0.28 + +- api isWeb + ### Version 1.0.27 - customer_membership end_date diff --git a/lib/service/api.dart b/lib/service/api.dart index 41b32cc..3cb89c7 100644 --- a/lib/service/api.dart +++ b/lib/service/api.dart @@ -63,10 +63,10 @@ class APIClient with Common, Logging { } Future 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 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");