feat(web): add TFM settings page

Only setting TFM database name by now
This commit is contained in:
2023-02-09 00:45:54 +03:00
parent 9c07702409
commit 243621f3b2
9 changed files with 211 additions and 22 deletions
+1 -1
View File
@@ -159,7 +159,7 @@ func HandlerTDBMS(w http.ResponseWriter, r *http.Request) {
}
}
log.Println("Got TDBMS response")
if request.TRDB == "$TFM" && (request.TRC == 0b10000 || request.TRC == 0b101000) {
if strings.HasPrefix(strings.ToLower(request.TRDB), "tfm") && (request.TRC == 0b10000 || request.TRC == 0b101000) {
var json_response JSON
err = json.Unmarshal(response, &json_response)
if err != nil {