From b28632fc2dac1bd0711fa16dbe4c10b4627aeceb Mon Sep 17 00:00:00 2001 From: Jesse Malotaux Date: Mon, 28 Apr 2025 15:03:19 +0200 Subject: [PATCH] Added api-struct update for macro/check and fixed translation quirks. --- be/app/helper/translation-helper.go | 4 ++++ be/app/structs/api-struct.go | 1 + 2 files changed, 5 insertions(+) diff --git a/be/app/helper/translation-helper.go b/be/app/helper/translation-helper.go index b9117f8..b0207f1 100644 --- a/be/app/helper/translation-helper.go +++ b/be/app/helper/translation-helper.go @@ -67,6 +67,10 @@ func Translate(code string) string { } func ReverseTranslate(name string) string { + if name == "\\" { + return "Backslash" + } + for key, value := range translations { if value == name { return key diff --git a/be/app/structs/api-struct.go b/be/app/structs/api-struct.go index 208845e..0a77ac8 100644 --- a/be/app/structs/api-struct.go +++ b/be/app/structs/api-struct.go @@ -8,6 +8,7 @@ type Allowed struct { var Endpoints = Allowed{ Local: []string{ + "/macro/check", "/macro/record", "/macro/list", "/macro/open",