using DysonNetwork.Shared.PageData; namespace DysonNetwork.Pass.Pages.Data; public class CaptchaPageData(IConfiguration configuration) : IPageDataProvider { public bool CanHandlePath(PathString path) => path == "/captcha"; public Task> GetAppDataAsync(HttpContext context) { var provider = configuration.GetSection("Captcha")["Provider"]?.ToLower(); var apiKey = configuration.GetSection("Captcha")["ApiKey"]; return Task.FromResult>(new Dictionary { ["Provider"] = provider, ["ApiKey"] = apiKey }); } }