feat: add localhost for generate token
Some checks failed
.NET Test Pipeline / build-and-test (pull_request) Failing after 1m50s

This commit is contained in:
Polianin Nikita 2024-05-29 03:30:26 +03:00
parent 22793c7882
commit 07d7fec24f

View File

@ -15,6 +15,7 @@ namespace Mirea.Api.Endpoint.Controllers.Configuration;
public class SetupController(ISetupToken setupToken, IMaintenanceModeNotConfigureService notConfigureService) : BaseController public class SetupController(ISetupToken setupToken, IMaintenanceModeNotConfigureService notConfigureService) : BaseController
{ {
[HttpGet("GenerateToken")] [HttpGet("GenerateToken")]
[Localhost]
public ActionResult<string> GenerateToken() public ActionResult<string> GenerateToken()
{ {
if (!notConfigureService.IsMaintenanceMode) if (!notConfigureService.IsMaintenanceMode)