From 81474ea297cf252ee3c6bd7ff1132eaded62db42 Mon Sep 17 00:00:00 2001 From: Roman Efremov Date: Tue, 26 Nov 2024 14:07:36 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=B8=D1=82?= =?UTF-8?q?=D1=8C=20=D0=BA=D0=B0=D1=82=D0=B5=D0=B3=D0=BE=D1=80=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Controllers/TechMessagesController.cs | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/Persistence.API/Controllers/TechMessagesController.cs b/Persistence.API/Controllers/TechMessagesController.cs index 47d79d5..676ae8e 100644 --- a/Persistence.API/Controllers/TechMessagesController.cs +++ b/Persistence.API/Controllers/TechMessagesController.cs @@ -48,5 +48,20 @@ namespace Persistence.API.Controllers return CreatedAtAction(nameof(InsertRange), result); } + + [HttpGet("categories")] + public ActionResult> GetImportantCategories() + { + var result = new Dictionary() + { + { 0, "System" }, + { 1, "Авария" }, + { 2, "Предупреждение" }, + { 3, "Инфо" }, + { 4, "Прочее" } + }; + + return Ok(result); + } } }