Initial commit
This commit is contained in:
20
flutter_app/lib/config/api_config.dart
Normal file
20
flutter_app/lib/config/api_config.dart
Normal file
@@ -0,0 +1,20 @@
|
||||
class ApiConfig {
|
||||
static const String baseUrl = String.fromEnvironment(
|
||||
"API_BASE_URL",
|
||||
defaultValue: "http://localhost:4000",
|
||||
);
|
||||
|
||||
static const bool useMockData = bool.fromEnvironment(
|
||||
"USE_MOCK_DATA",
|
||||
defaultValue: false,
|
||||
);
|
||||
|
||||
static const String family = "/api/family";
|
||||
static const String todos = "/api/todos";
|
||||
static const String schedules = "/api/schedules";
|
||||
static const String announcements = "/api/announcements";
|
||||
static const String weather = "/api/weather";
|
||||
static const String bibleToday = "/api/bible/today";
|
||||
static const String bibleVerses = "/api/bible/verses";
|
||||
static const String photos = "/api/photos";
|
||||
}
|
||||
Reference in New Issue
Block a user