|
|
|
|
@ -3,17 +3,18 @@ class URLs {
|
|
|
|
|
|
|
|
|
|
static const host2 = "http://194.163.164.213/atoms/api";
|
|
|
|
|
static const host1 = "https://atomsuat.hmg.com"; // uat url
|
|
|
|
|
static const host3 = "https://atomsmdev.hmg.com"; // uat url
|
|
|
|
|
|
|
|
|
|
// static const host1 = "http://109.123.243.118:9000";
|
|
|
|
|
|
|
|
|
|
static String _baseUrl = "$_host/mobile";
|
|
|
|
|
|
|
|
|
|
static String _host = host1;
|
|
|
|
|
static String _host = host3;
|
|
|
|
|
|
|
|
|
|
set host(String value) => _host = value;
|
|
|
|
|
|
|
|
|
|
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");
|
|
|
|
|
// static String getFileUrl(String file) => (file == null || file.isEmpty) ? null :1 (file.contains("/") ? file : "$_host/attachment/$file");
|
|
|
|
|
|
|
|
|
|
// API Routes
|
|
|
|
|
static get login => "$_baseUrl/MobileAuth/LoginIntegration"; // post
|
|
|
|
|
|