feat: add new endpoint
All checks were successful
.NET Test Pipeline / build-and-test (push) Successful in 3m10s
Build and Deploy Docker Container / build-and-deploy (push) Successful in 3m18s

This commit is contained in:
Polianin Nikita 2024-07-08 01:56:14 +03:00
parent 497b7f146b
commit c6ca717b89

View File

@ -62,6 +62,10 @@ public partial class SetupController(
return Ok(Convert.ToBase64String(token)); return Ok(Convert.ToBase64String(token));
} }
[HttpGet("IsConfigured")]
public ActionResult<bool> IsConfigured() =>
!notConfigureService.IsMaintenanceMode;
[HttpGet("CheckToken")] [HttpGet("CheckToken")]
public ActionResult<bool> CheckToken([FromQuery] string token) public ActionResult<bool> CheckToken([FromQuery] string token)
{ {