first commit
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
using Microsoft.AspNetCore.Components.Web;
|
||||
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
|
||||
using Webshop.App;
|
||||
using Webshop.App.Services;
|
||||
|
||||
var builder = WebAssemblyHostBuilder.CreateDefault(args);
|
||||
builder.RootComponents.Add<App>("#app");
|
||||
builder.RootComponents.Add<HeadOutlet>("head::after");
|
||||
|
||||
builder.Services.AddHttpClient<IEmployeeDataService, EmployeeDataService>(
|
||||
client => client.BaseAddress = new Uri("https://localhost:7039"));
|
||||
builder.Services.AddHttpClient<ICountryDataService, CountryDataService>(
|
||||
client => client.BaseAddress = new Uri("https://localhost:7039"));
|
||||
builder.Services.AddHttpClient<IJobCategoryDataService, JobCategoryDataService>(
|
||||
client => client.BaseAddress = new Uri("https://localhost:7039"));
|
||||
|
||||
builder.Services.AddScoped<ApplicationState>();
|
||||
builder.Services.AddLocalStorageServices();
|
||||
|
||||
await builder.Build().RunAsync();
|
||||
Reference in New Issue
Block a user