Files
mixtape/Finch/Security/StaticCaptchaService.cs
T
2026-04-07 14:23:29 +02:00

16 lines
397 B
C#

using Microsoft.Extensions.DependencyInjection;
using PowCapServer.Abstractions;
namespace Finch.Security;
internal static class StaticCaptchaService
{
private static IServiceProvider Services { get; set; }
public static void Configure(IServiceProvider services)
{
Services = services;
}
public static ICaptchaService Get() => Services.GetRequiredService<ICaptchaService>();
}