Add dev mode switch for API URL
devMode = true → dev.inou.com devMode = false → inou.com
This commit is contained in:
parent
81e779f105
commit
950f2d976a
|
|
@ -5,7 +5,14 @@ import 'package:shared_preferences/shared_preferences.dart';
|
|||
|
||||
/// inou API client for authentication and data access
|
||||
class InouApi {
|
||||
static const String baseUrl = 'https://inou.com';
|
||||
// Dev mode switch - set to false for production
|
||||
static const bool devMode = true;
|
||||
|
||||
static const String _prodUrl = 'https://inou.com';
|
||||
static const String _devUrl = 'https://dev.inou.com';
|
||||
|
||||
static String get baseUrl => devMode ? _devUrl : _prodUrl;
|
||||
|
||||
static const String _prefKeySessionToken = 'inou_session_token';
|
||||
static const String _prefKeyDossierId = 'inou_dossier_id';
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue