Initial commit: QR Scanner Flutter app
App móvil para validar pases QR contra base-admin-web con login Cognito, escáner en tiempo real, feedback auditivo/háptico y README completo.
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
/// URL base del API de base-admin-web.
|
||||
///
|
||||
/// Configúrala al ejecutar o compilar si necesitas otra IP:
|
||||
/// `flutter run --dart-define=API_BASE_URL=http://otra-ip:8080`
|
||||
class ApiConfig {
|
||||
ApiConfig._();
|
||||
|
||||
static const String baseUrl = String.fromEnvironment(
|
||||
'API_BASE_URL',
|
||||
defaultValue: 'http://10.99.51.6:8080',
|
||||
);
|
||||
|
||||
static String get loginUrl => '$baseUrl/api/auth/login';
|
||||
|
||||
static String get scanUrl => '$baseUrl/api/pass-codes/scan';
|
||||
}
|
||||
Reference in New Issue
Block a user