aboutsummaryrefslogtreecommitdiff
path: root/Website/Website.Client/Program.cs
blob: 914d0880d0f1d4a82a09836868a1f95d81884908 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;


namespace Website.Client
{
    public class Program
    {
        public static async Task Main(string[] args)
        {
            var builder = WebAssemblyHostBuilder.CreateDefault(args);
            //builder.RootComponents.Add<App>("#app");

            builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:44349") });

            await builder.Build().RunAsync();
        }
    }
}