AutoImport - check local url fix

This commit is contained in:
Michał Zieliński
2023-08-30 23:11:40 +02:00
parent f90cb6a126
commit d3c50062e1
3 changed files with 4 additions and 2 deletions

View File

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