ddd-refactor #2

Merged
mz merged 46 commits from ddd-refactor into main 2025-11-28 11:14:43 +01:00
2 changed files with 2 additions and 2 deletions
Showing only changes of commit e6b4563712 - Show all commits

View File

@@ -283,7 +283,7 @@ public class LayersController : Controller
[AllowAnonymous] [AllowAnonymous]
public IActionResult AutoImport(string apiKey, string nameFilter) public IActionResult AutoImport(string apiKey, string nameFilter)
{ {
if (Request.Host.Value != _configuration["apiLocalUrl"] || apiKey != _configuration["apiKey"]) if (apiKey != _configuration["apiKey"])
{ {
_logger.LogWarning("AutoImport: Unauthorized request with apiKey {ApiKey}", apiKey); _logger.LogWarning("AutoImport: Unauthorized request with apiKey {ApiKey}", apiKey);
return Unauthorized(); return Unauthorized();

View File

@@ -2,4 +2,4 @@ GET http://localhost:5400/tests/ping
### ###
GET https://morska.diunabi.com/api/tests/ping GET https://morska.diunabi.com/api/layers/autoImport/godojshf8704i357yhgdsahjdfh/K5-