From 4cfc341c846b09021d63f13d4bf872a434984f37 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Zieli=C5=84ski?= Date: Wed, 30 Aug 2023 23:18:54 +0200 Subject: [PATCH] Second fix ;) --- WebAPI/Controllers/LayersController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebAPI/Controllers/LayersController.cs b/WebAPI/Controllers/LayersController.cs index ae58793..90a3d44 100644 --- a/WebAPI/Controllers/LayersController.cs +++ b/WebAPI/Controllers/LayersController.cs @@ -132,7 +132,7 @@ namespace WebAPI.Controllers [AllowAnonymous] 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(); } @@ -180,7 +180,7 @@ namespace WebAPI.Controllers [AllowAnonymous] 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(); }