Files
MeWeb/src/MeWeb.App/AppServices.cs
T
thepraandClaude Opus 5.5 7589121846
Build / Desktop, server and tools (push) Successful in 1m7s
me-web? skeleton: Avalonia 12 app, server, packaging and CI
The first screen (online or not, a Check button, every language with a
draft notice), the desktop and Android heads, the server's /api/info and
/api/ip, a release tool that builds deb, rpm, a Windows exe, macOS zips,
a signed APK and the server, and the Gitea workflows that run it. Rules
adapted from passolo; AGPL-3.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CzABvBkbcFqoHdmi8b9WB
2026-10-15 01:14:44 +02:00

23 lines
581 B
C#

using MeWeb.App.Services;
using MeWeb.App.ViewModels;
using MeWeb.Shared;
using Microsoft.Extensions.DependencyInjection;
namespace MeWeb.App;
public static class AppServices
{
public static IServiceCollection AddMeWebApp(this IServiceCollection services)
{
services.AddHttpClient(ServerClient.Name, http =>
{
http.BaseAddress = new Uri(Endpoints.Base);
http.DefaultRequestHeaders.UserAgent.ParseAdd($"me-web/{BuildInfo.Version}");
});
services.AddSingleton<ServerClient>();
services.AddTransient<MainViewModel>();
return services;
}
}