add configuration
This commit is contained in:
@@ -12,8 +12,12 @@ namespace Reader
|
||||
{
|
||||
public partial class MainForm : Form
|
||||
{
|
||||
private static readonly HttpClient http = new HttpClient();
|
||||
private const string ServerUrl = "http://192.168.0.125:5000";
|
||||
private static readonly HttpClient http = new HttpClient();
|
||||
private static readonly string ServerUrl = System.IO.File.ReadAllText("appsettings.json")
|
||||
.Replace("\"", "")
|
||||
.Split(':')[1]
|
||||
.Replace("/", "")
|
||||
.Trim();
|
||||
|
||||
public MainForm()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user