mirror of
https://github.com/Macrame-App/Macrame
synced 2025-12-29 07:19:26 +00:00
Added api-struct update for macro/check and fixed translation quirks.
This commit is contained in:
parent
9218f53c5d
commit
b28632fc2d
2 changed files with 5 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ type Allowed struct {
|
|||
|
||||
var Endpoints = Allowed{
|
||||
Local: []string{
|
||||
"/macro/check",
|
||||
"/macro/record",
|
||||
"/macro/list",
|
||||
"/macro/open",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue