From 5ec25b3c8f067a5c8c5186283ee381e850edb805 Mon Sep 17 00:00:00 2001 From: Sjory Date: Sun, 5 Jan 2025 16:46:09 +0100 Subject: changed from Client side to server side interactivity deleted all client models and pages and changed the create drinks page to be on the home page on the server this made it a lot easier to get the data since we omitted the api and the server interactivity works great since its only forms and no fance animations rendering --- Website/Website.Client/Program.cs | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'Website/Website.Client/Program.cs') diff --git a/Website/Website.Client/Program.cs b/Website/Website.Client/Program.cs index a245c93..914d088 100644 --- a/Website/Website.Client/Program.cs +++ b/Website/Website.Client/Program.cs @@ -1,9 +1,5 @@ using Microsoft.AspNetCore.Components.WebAssembly.Hosting; -using Microsoft.Extensions.DependencyInjection; -using System; -using System.Net.Http; -using System.Threading.Tasks; -using Website.Client.Services; + namespace Website.Client { @@ -15,7 +11,6 @@ namespace Website.Client //builder.RootComponents.Add("#app"); builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:44349") }); - builder.Services.AddScoped(); await builder.Build().RunAsync(); } -- cgit v1.3.1