feat(apps): add dependency injection configuration
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class Env {
|
||||
static String get apiUrl {
|
||||
const url = String.fromEnvironment('API_URL');
|
||||
return url.isNotEmpty ? url : 'http://localhost:8000';
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user