From 1839536caa4ee26a7055148697e37fdb0aa3c54f Mon Sep 17 00:00:00 2001 From: Sikander Saleem Date: Thu, 24 Aug 2023 16:05:45 +0300 Subject: [PATCH] image url updated --- lib/controllers/api_routes/urls.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/controllers/api_routes/urls.dart b/lib/controllers/api_routes/urls.dart index 94388e19..3100cf51 100644 --- a/lib/controllers/api_routes/urls.dart +++ b/lib/controllers/api_routes/urls.dart @@ -12,7 +12,7 @@ class URLs { set host(String value) => _host = value; - static String getFileUrl(String file) => (file == null || file.isEmpty) ? null : (file.contains("/") ? file : "$_host/Files/DownloadFile?fileName=$file"); + static String getFileUrl(String file) => (file == null || file.isEmpty) ? null : (file.contains("/") ? file : "$_baseUrl/Files/DownloadFile?fileName=$file"); // static String getFileUrl(String file) => (file == null || file.isEmpty) ? null : (file.contains("/") ? file : "$_host/attachment/$file"); // API Routes