From 48358e184d3b3bfb4e00ea58737a5f98faa94b8a Mon Sep 17 00:00:00 2001 From: Dewmal Date: Sun, 22 Mar 2020 12:31:25 +0530 Subject: [PATCH] Change testing server --- lib/constants.dart | 1 + lib/networking/api_client.dart | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/constants.dart b/lib/constants.dart index b988060..9e3ca16 100644 --- a/lib/constants.dart +++ b/lib/constants.dart @@ -1 +1,2 @@ final bool debugRelease = true; +final String testingServer = "api.covid-19.health.gov.lk/test"; diff --git a/lib/networking/api_client.dart b/lib/networking/api_client.dart index 9c3093a..d5bec30 100644 --- a/lib/networking/api_client.dart +++ b/lib/networking/api_client.dart @@ -15,9 +15,8 @@ class ApiClient { final String _baseUrl; ApiClient() - : _baseUrl = debugRelease - ? 'http://covid19.egreen.io:8000' - : 'https://api.covid-19.health.gov.lk'; + : _baseUrl = + debugRelease ? testingServer : 'https://api.covid-19.health.gov.lk'; Future registerUser(u) async { final url = '$_baseUrl/user/register';