Aggiunta impostazione server URL

This commit is contained in:
2026-02-12 09:42:45 +01:00
parent b55d2a40db
commit cb6c007480
5 changed files with 79 additions and 1 deletions

View File

@@ -1,3 +1,4 @@
using System.Configuration;
using System.Net.Http.Json;
namespace PizzaExpress_Client
@@ -29,7 +30,7 @@ namespace PizzaExpress_Client
MaximizeBox = false;
StartPosition = FormStartPosition.CenterScreen;
_httpClient = new HttpClient { BaseAddress = new Uri("http://localhost:5000/") };
_httpClient = new HttpClient { BaseAddress = new Uri(Properties.Settings.Default.serverUrl) };
// ======================================================
// PANNELLO SUPERIORE