From c6ca717b89f9d03240a639c32ed428e3f2e032b9 Mon Sep 17 00:00:00 2001 From: Polianin Nikita Date: Mon, 8 Jul 2024 01:56:14 +0300 Subject: [PATCH] feat: add new endpoint --- Endpoint/Controllers/Configuration/SetupController.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Endpoint/Controllers/Configuration/SetupController.cs b/Endpoint/Controllers/Configuration/SetupController.cs index 666c97d..2772e4f 100644 --- a/Endpoint/Controllers/Configuration/SetupController.cs +++ b/Endpoint/Controllers/Configuration/SetupController.cs @@ -62,6 +62,10 @@ public partial class SetupController( return Ok(Convert.ToBase64String(token)); } + [HttpGet("IsConfigured")] + public ActionResult IsConfigured() => + !notConfigureService.IsMaintenanceMode; + [HttpGet("CheckToken")] public ActionResult CheckToken([FromQuery] string token) {