Second fix ;)

This commit is contained in:
Michał Zieliński
2023-08-30 23:18:54 +02:00
parent d3c50062e1
commit 4cfc341c84

View File

@@ -132,7 +132,7 @@ namespace WebAPI.Controllers
[AllowAnonymous] [AllowAnonymous]
public IActionResult AutoImport(string apiKey) public IActionResult AutoImport(string apiKey)
{ {
if (Request.Host.Value != configuration["api-local-url"] || apiKey != configuration["apiKey"]) if (Request.Host.Value != configuration["apiLocalUrl"] || apiKey != configuration["apiKey"])
{ {
return Unauthorized(); return Unauthorized();
} }
@@ -180,7 +180,7 @@ namespace WebAPI.Controllers
[AllowAnonymous] [AllowAnonymous]
public IActionResult autoImportMorska(string apiKey) public IActionResult autoImportMorska(string apiKey)
{ {
if (Request.Host.Value != configuration["api-local-url"] || apiKey != configuration["apiKey"]) if (Request.Host.Value != configuration["apiLocalUrl"] || apiKey != configuration["apiKey"])
{ {
return Unauthorized(); return Unauthorized();
} }