12 July 2024 v2

This commit is contained in:
2024-07-12 15:33:30 +02:00
parent 380f212c7f
commit aec55c75f2
25 changed files with 250 additions and 594 deletions

View File

@@ -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;
}

View File

@@ -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/";