Files
Hushian/Presentation/HushianWebApp/Program.cs

24 lines
1002 B
C#
Raw Normal View History

2025-07-11 20:37:28 +03:30
using Microsoft.AspNetCore.Components.Web;
using Microsoft.AspNetCore.Components.WebAssembly.Hosting;
using HushianWebApp;
using HushianWebApp.Services;
using HushianWebApp.Service;
var builder = WebAssemblyHostBuilder.CreateDefault(args);
builder.RootComponents.Add<App>("#app");
builder.RootComponents.Add<HeadOutlet>("head::after");
2025-07-24 23:18:11 +03:30
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("http://localhost:5089/api/") });
2025-07-11 20:37:28 +03:30
builder.Services.AddScoped<ILocalStorageService, LocalStorageService>();
builder.Services.AddScoped<BaseController>();
builder.Services.AddScoped<AuthService>();
builder.Services.AddScoped<VerificationService>();
builder.Services.AddScoped<UserService>();
builder.Services.AddScoped<CompanyService>();
builder.Services.AddScoped<GroupService>();
2025-08-16 01:46:25 +03:30
builder.Services.AddScoped<PromptService>();
2025-07-11 20:37:28 +03:30
builder.Services.AddScoped<ConversationService>();
2025-07-29 00:00:16 +03:30
builder.Services.AddScoped<ChatService>();
2025-07-11 20:37:28 +03:30
builder.Services.AddBlazorBootstrap();
await builder.Build().RunAsync();