fixed endpoint addresses
This commit is contained in:
@@ -322,7 +322,7 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF
|
|||||||
|
|
||||||
private async Task Init()
|
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));
|
CollectionChanged?.Invoke(this, new NotifyCollectionChangedEventArgs(NotifyCollectionChangedAction.Reset));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -33,10 +33,10 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF.ViewModels
|
|||||||
{
|
{
|
||||||
if (!IsInDesignMode)
|
if (!IsInDesignMode)
|
||||||
{
|
{
|
||||||
Services = new RestCollection<Service>("http://localhost:62005/", "Service", "hub");
|
Services = new RestCollection<Service>("http://localhost:5000/", "api/Service");
|
||||||
Employees = new RestCollection<Employee>("http://localhost:62005/", "Employee", "hub");
|
Employees = new RestCollection<Employee>("http://localhost:5000/", "api/Employee");
|
||||||
MaintainerTeams = new RestCollection<MaintainerTeam>("http://localhost:62005/", "MaintainerTeam", "hub");
|
MaintainerTeams = new RestCollection<MaintainerTeam>("http://localhost:5000/", "api/MaintainerTeam");
|
||||||
Customers = new RestCollection<Customer>("http://localhost:62005/", "Customer", "hub");
|
Customers = new RestCollection<Customer>("http://localhost:5000/", "api/Customer");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ namespace WD7UVN_SzTGUI_2023242.Client.WPF
|
|||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
Services = new RestCollection<Service>("https://localhost:5001", "Service", "hub");
|
Services = new RestCollection<Service>("http://localhost:5000/", "api/Service");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user