fixed endpoint addresses

This commit is contained in:
2024-04-03 12:58:49 +02:00
parent a32958eb1f
commit c4412d5de6
3 changed files with 6 additions and 6 deletions

View File

@@ -322,7 +322,7 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF
private async Task Init()
{
items = await rest.GetAsync<T>(typeof(T).Name);
items = await rest.GetAsync<T>("api/" + typeof(T).Name);
CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
}

View File

@@ -33,10 +33,10 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF.ViewModels
{
if (!IsInDesignMode)
{
Services = new RestCollection<Service>("http://localhost:62005/", "Service", "hub");
Employees = new RestCollection<Employee>("http://localhost:62005/", "Employee", "hub");
MaintainerTeams = new RestCollection<MaintainerTeam>("http://localhost:62005/", "MaintainerTeam", "hub");
Customers = new RestCollection<Customer>("http://localhost:62005/", "Customer", "hub");
Services = new RestCollection<Service>("http://localhost:5000/", "api/Service");
Employees = new RestCollection<Employee>("http://localhost:5000/", "api/Employee");
MaintainerTeams = new RestCollection<MaintainerTeam>("http://localhost:5000/", "api/MaintainerTeam");
Customers = new RestCollection<Customer>("http://localhost:5000/", "api/Customer");
}
}
}

View File

@@ -14,7 +14,7 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF
{
InitializeComponent();
Services = new RestCollection<Service>("https://localhost:5001", "Service", "hub");
Services = new RestCollection<Service>("http://localhost:5000/", "api/Service");
}
}
}