From 0e450df50d338f3c21f205f37adfa7f61037b2c6 Mon Sep 17 00:00:00 2001 From: Marcos Date: Thu, 21 May 2026 08:18:45 +0200 Subject: [PATCH] feat: Update default API endpoint to production URL in ApiConfig and settings screen --- lib/data/api_client.dart | 2 +- lib/screens/settings_screen.dart | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/data/api_client.dart b/lib/data/api_client.dart index 6883897..319ae03 100644 --- a/lib/data/api_client.dart +++ b/lib/data/api_client.dart @@ -15,7 +15,7 @@ class ApiConfig { static const String _endpointKey = 'api_endpoint_v1'; /// Default endpoint for local development. Can be overridden by user. - static const String defaultEndpoint = 'http://localhost:3000/api'; + static const String defaultEndpoint = 'https://notas-api.lpncnd.es/api'; static Future getEndpoint() async { final prefs = await SharedPreferences.getInstance(); diff --git a/lib/screens/settings_screen.dart b/lib/screens/settings_screen.dart index 4ff47cc..28fb2f0 100644 --- a/lib/screens/settings_screen.dart +++ b/lib/screens/settings_screen.dart @@ -524,7 +524,7 @@ class _SettingsScreenState extends State { ], ), const SizedBox(height: 24), - const Text('API endpoint (ej: http://localhost:3000/api)'), + const Text('API endpoint (ej: https://notas-api.lpncnd.es/api)'), const SizedBox(height: 8), _buildResponsiveInputActionsRow( input: _endpointLoading