aboutsummaryrefslogtreecommitdiff
path: root/Website/Website.Client/Program.cs
diff options
context:
space:
mode:
authorSjory <Mgj32000@gmail.com>2025-01-05 16:46:09 +0100
committerSjory <Mgj32000@gmail.com>2025-01-05 16:46:09 +0100
commit5ec25b3c8f067a5c8c5186283ee381e850edb805 (patch)
tree1b727ab8ff312dae900088bb3a95d06d670bba43 /Website/Website.Client/Program.cs
parent707b07b3351c06118f53ec7b2c0836c4b93aaf16 (diff)
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
Diffstat (limited to 'Website/Website.Client/Program.cs')
-rw-r--r--Website/Website.Client/Program.cs7
1 files changed, 1 insertions, 6 deletions
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>("#app");
builder.Services.AddScoped(sp => new HttpClient { BaseAddress = new Uri("https://localhost:44349") });
- builder.Services.AddScoped<DrinkDataService2>();
await builder.Build().RunAsync();
}