Added proper server config model, added proper apikey authorization with swagger integration, added allowlist and denylist to config

This commit is contained in:
2025-12-30 22:18:26 +01:00
parent b5db4bc1e4
commit bc293bf7ec
7 changed files with 126 additions and 135 deletions

View File

@@ -12,9 +12,9 @@ public class AccountController : Controller
{
private readonly SimpleAuthOptions _options;
public AccountController(IOptions<SimpleAuthOptions> options)
public AccountController(EmbeddingSearchOptions options)
{
_options = options.Value;
_options = options.SimpleAuth;
}
[HttpGet("Login")]