changes file v3
This commit is contained in:
parent
6a49cc951e
commit
545bb8432d
37 changed files with 47 additions and 46 deletions
40
Frontend/patient_manager/lib/env/env.dart
vendored
40
Frontend/patient_manager/lib/env/env.dart
vendored
|
|
@ -1,40 +0,0 @@
|
|||
enum Enviroment { dev, prod }
|
||||
|
||||
//
|
||||
abstract class AppEnviroment {
|
||||
static late String baseApiUrl;
|
||||
static late String baseFileUrl;
|
||||
static late Enviroment _enviroment;
|
||||
static Enviroment get enviroment => _enviroment;
|
||||
static setupEnv(Enviroment env) {
|
||||
_enviroment = env;
|
||||
switch (env) {
|
||||
case Enviroment.dev:
|
||||
{
|
||||
baseApiUrl = "http://localhost:8080";
|
||||
baseFileUrl = "http://localhost:9000";
|
||||
break;
|
||||
}
|
||||
case Enviroment.prod:
|
||||
{
|
||||
baseApiUrl = "https://api.mzansi-innovation-hub.co.za";
|
||||
baseFileUrl = "https://minio.mzansi-innovation-hub.co.za";
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
static String getEnv() {
|
||||
//_enviroment = env;
|
||||
switch (_enviroment) {
|
||||
case Enviroment.dev:
|
||||
{
|
||||
return "Dev";
|
||||
}
|
||||
case Enviroment.prod:
|
||||
{
|
||||
return "Prod";
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue