Skip to content

Commit

Permalink
Change testing server
Browse files Browse the repository at this point in the history
  • Loading branch information
dewmal committed Mar 22, 2020
1 parent c6d9e02 commit 48358e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/constants.dart
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
final bool debugRelease = true;
final String testingServer = "api.covid-19.health.gov.lk/test";
5 changes: 2 additions & 3 deletions lib/networking/api_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<bool> registerUser(u) async {
final url = '$_baseUrl/user/register';
Expand Down

0 comments on commit 48358e1

Please sign in to comment.