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");