Added allowlist and denylist, fixed patchy configuration with proper options models, fixed api middleware authorization issues
This commit is contained in:
@@ -12,9 +12,9 @@ public class AccountController : Controller
|
||||
{
|
||||
private readonly SimpleAuthOptions _options;
|
||||
|
||||
public AccountController(EmbeddingSearchOptions options)
|
||||
public AccountController(IOptions<EmbeddingSearchOptions> options)
|
||||
{
|
||||
_options = options.SimpleAuth;
|
||||
_options = options.Value.SimpleAuth;
|
||||
}
|
||||
|
||||
[HttpGet("Login")]
|
||||
|
||||
Reference in New Issue
Block a user