Skip to content

Commit

Permalink
chore(app): use local setup
Browse files Browse the repository at this point in the history
  • Loading branch information
tamslo committed Jun 19, 2023
1 parent 44bb888 commit 5370aa5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions app/lib/common/constants.dart
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import 'package:url_launcher/url_launcher.dart';

Uri anniUrl([String slug = '']) => Uri.http('localhost:3001', 'api/v1/$slug');
Uri anniUrl([String slug = '']) => Uri.http('localhost:8000', 'api/v1/$slug');
Uri labServerUrl([String slug = '']) =>
Uri.https('lab-server-pharme.dhc-lab.hpi.de', 'api/v1/$slug');
Uri.http('localhost:3001', 'api/v1/$slug');
Uri keycloakUrl([String slug = '']) =>
Uri.https('keycloak-pharme.dhc-lab.hpi.de', slug);
Uri.http('localhost:28080', 'auth/$slug');

// Note that sending emails will not work on the iPhone Simulator since it does
// not have any email application installed.
Expand Down
6 changes: 3 additions & 3 deletions app/lib/login/models/lab.dart
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ class Lab {
final labs = [
Lab(
name: 'Mount Sinai Health System',
authUrl: keycloakUrl('/realms/pharme/protocol/openid-connect/auth'),
tokenUrl: keycloakUrl('/realms/pharme/protocol/openid-connect/token'),
starAllelesUrl: labServerUrl('/star-alleles'),
authUrl: keycloakUrl('realms/pharme/protocol/openid-connect/auth'),
tokenUrl: keycloakUrl('realms/pharme/protocol/openid-connect/token'),
starAllelesUrl: labServerUrl('star-alleles'),
)
];

0 comments on commit 5370aa5

Please sign in to comment.