Added api-struct update for macro/check and fixed translation quirks.

This commit is contained in:
Jesse Malotaux 2025-04-28 15:03:19 +02:00
parent 9218f53c5d
commit b28632fc2d
2 changed files with 5 additions and 0 deletions

View file

@ -67,6 +67,10 @@ func Translate(code string) string {
} }
func ReverseTranslate(name string) string { func ReverseTranslate(name string) string {
if name == "\\" {
return "Backslash"
}
for key, value := range translations { for key, value := range translations {
if value == name { if value == name {
return key return key

View file

@ -8,6 +8,7 @@ type Allowed struct {
var Endpoints = Allowed{ var Endpoints = Allowed{
Local: []string{ Local: []string{
"/macro/check",
"/macro/record", "/macro/record",
"/macro/list", "/macro/list",
"/macro/open", "/macro/open",