Implemented version fetching from source control git server. Added self version detection and update checks

This commit was merged in pull request #8.
This commit is contained in:
2026-02-01 14:47:32 +01:00
parent 76a8a72e83
commit c8fe11bd2b
11 changed files with 274 additions and 20 deletions

View File

@@ -9,7 +9,7 @@ using Moonlight.Api.Helpers;
using Moonlight.Api.Implementations;
using Moonlight.Api.Interfaces;
using Moonlight.Api.Services;
using SessionOptions = Microsoft.AspNetCore.Builder.SessionOptions;
using SessionOptions = Moonlight.Api.Configuration.SessionOptions;
namespace Moonlight.Api.Startup;
@@ -38,6 +38,11 @@ public partial class Startup
builder.Services.AddOptions<FrontendOptions>().BindConfiguration("Moonlight:Frontend");
builder.Services.AddScoped<FrontendService>();
builder.Services.AddHttpClient();
builder.Services.AddOptions<VersionOptions>().BindConfiguration("Moonlight:Version");
builder.Services.AddSingleton<VersionService>();
}
private static void UseBase(WebApplication application)