Add dev mode switch for API URL

devMode = true → dev.inou.com
devMode = false → inou.com
This commit is contained in:
Johan Jongsma 2026-02-01 19:15:08 +00:00
parent 81e779f105
commit 950f2d976a
1 changed files with 8 additions and 1 deletions

View File

@ -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';