Add InstallScriptBuilder + GET /install.sh + GET /client.tar.gz

This commit is contained in:
2026-06-11 19:03:33 +00:00
parent e5ae228738
commit 751030dcef
5 changed files with 174 additions and 0 deletions
+3
View File
@@ -1,6 +1,7 @@
using backend.Auth;
using backend.Data;
using backend.Devices;
using backend.Install;
using backend.Pairing;
using Microsoft.EntityFrameworkCore;
@@ -14,6 +15,7 @@ builder.Services.AddAuthorization();
builder.Services.AddScoped<backend.Devices.DeviceTokenService>();
builder.Services.AddScoped<backend.Pairing.PairingService>();
builder.Services.AddSingleton<backend.Install.InstallScriptBuilder>();
var app = builder.Build();
@@ -37,6 +39,7 @@ app.UseAuthorization();
app.MapAuthEndpoints();
app.MapPairingEndpoints();
app.MapDevicesEndpoints();
app.MapInstallEndpoints();
app.MapGet("/health", () => Results.Ok(new { ok = true }));