forked from yaso_meth/mih-project
12 July 2024 v2
This commit is contained in:
5
Frontend/patient_manager/lib/env/env.dart
vendored
5
Frontend/patient_manager/lib/env/env.dart
vendored
@@ -1,5 +1,6 @@
|
||||
enum Enviroment { dev, prod }
|
||||
|
||||
//
|
||||
abstract class AppEnviroment {
|
||||
static late String baseApiUrl;
|
||||
static late String baseFileUrl;
|
||||
@@ -10,13 +11,13 @@ abstract class AppEnviroment {
|
||||
switch (env) {
|
||||
case Enviroment.dev:
|
||||
{
|
||||
baseApiUrl = "http://localhost:80";
|
||||
baseApiUrl = "http://localhost:81";
|
||||
baseFileUrl = "http://localhost:9000";
|
||||
break;
|
||||
}
|
||||
case Enviroment.prod:
|
||||
{
|
||||
baseApiUrl = "http://MIH_API_Hub:80";
|
||||
baseApiUrl = "http://MIH_API_Hub:81";
|
||||
baseFileUrl = "http://MIH_Minio:9000";
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ class PatientManager extends StatefulWidget {
|
||||
State<PatientManager> createState() => _PatientManagerState();
|
||||
}
|
||||
|
||||
//
|
||||
class _PatientManagerState extends State<PatientManager> {
|
||||
TextEditingController searchController = TextEditingController();
|
||||
String endpoint = "${AppEnviroment.baseApiUrl}/patients/user/";
|
||||
|
||||
Reference in New Issue
Block a user