From 07d7fec24fe9ee55798284ac45799866adad0109 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Wed, 29 May 2024 03:30:26 +0300 Subject: [PATCH] feat: add localhost for generate token --- Endpoint/Controllers/Configuration/SetupController.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Endpoint/Controllers/Configuration/SetupController.cs b/Endpoint/Controllers/Configuration/SetupController.cs index c315237..4317b95 100644 --- a/Endpoint/Controllers/Configuration/SetupController.cs +++ b/Endpoint/Controllers/Configuration/SetupController.cs @@ -15,6 +15,7 @@ namespace Mirea.Api.Endpoint.Controllers.Configuration; public class SetupController(ISetupToken setupToken, IMaintenanceModeNotConfigureService notConfigureService) : BaseController { [HttpGet("GenerateToken")] + [Localhost] public ActionResult GenerateToken() { if (!notConfigureService.IsMaintenanceMode)