feat(apps): add dependency injection configuration

This commit is contained in:
qzl
2026-02-25 15:11:25 +08:00
parent c9195b81b6
commit 0a7e1cd2d4
2 changed files with 58 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
class Env {
static String get apiUrl {
const url = String.fromEnvironment('API_URL');
return url.isNotEmpty ? url : 'http://localhost:8000';
}
}