update app env and nginx to cater for minio

This commit is contained in:
2024-07-18 10:27:27 +02:00
parent 9189201229
commit e7862d1638
5 changed files with 15 additions and 6 deletions

View File

@@ -47,6 +47,7 @@ class _HomeState extends State<Home> {
future: getUserEmail(),
builder: (contexts, snapshot) {
if (snapshot.connectionState == ConnectionState.done) {
//print("home page: $useremail");
return Scaffold(
appBar: const MyAppBar(barTitle: "Mzansi Innovation Hub"),
drawer: HomeAppDrawer(userEmail: useremail),

View File

@@ -37,8 +37,8 @@ class _PatientManagerState extends State<PatientManager> {
//print("Patien manager page: $endpoint");
final response = await http.get(Uri.parse(endpoint));
// print("Here");
// print(response.body);
// print(response.statusCode);
// print("Body: ${response.body}");
// print("Code: {response.statusCode}");
errorCode = response.statusCode.toString();
errorBody = response.body;
@@ -206,7 +206,7 @@ class _PatientManagerState extends State<PatientManager> {
),
child: Center(
child: Text(
"$errorCode: Error pulling Patients Data\n$endpoint\n$errorBody",
"$errorCode: Error pulling Patients Data\n$endpoint${widget.userEmail}\n$errorBody",
style: TextStyle(
fontSize: 25,
color: MzanziInnovationHub.of(context)!
@@ -228,6 +228,7 @@ class _PatientManagerState extends State<PatientManager> {
void initState() {
// errorCode = "";
// errorBody = "";
//print("patient manager page: ${widget.userEmail}");
futurePatients = fetchPatients(endpoint + widget.userEmail);
super.initState();
}