DI the drivers into the razor pages

This commit is contained in:
2026-02-16 12:32:39 -08:00
parent 63a38297c7
commit 7e9dcf928d
2 changed files with 6 additions and 2 deletions
+5
View File
@@ -1,10 +1,15 @@
@using System.Net.Http
@using System.Net.Http.Json
@using DataBase
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.AspNetCore.Components.Web
@using static Microsoft.AspNetCore.Components.Web.RenderMode
@using Microsoft.AspNetCore.Components.Web.Virtualization
@using Microsoft.JSInterop
@using PythonInterop
@using WebServer
@using WebServer.Components
@inject DbDriver dbDriver
@inject AIModule aiModule
+1 -2
View File
@@ -34,7 +34,6 @@ app.UseHttpsRedirection();
app.UseAntiforgery();
app.MapStaticAssets();
app.MapRazorComponents<App>()
.AddInteractiveServerRenderMode();
app.MapRazorComponents<App>().AddInteractiveServerRenderMode();
app.Run();