add Updateboltcard()

This commit is contained in:
Peter Rounce 2023-02-22 08:11:52 +00:00
parent 0300a5aa30
commit dadc76f0d3
8 changed files with 66 additions and 49 deletions

View file

@ -1,4 +1,4 @@
package main
package internalapi
import (
"github.com/boltcard/boltcard/db"
@ -8,7 +8,7 @@ import (
"strconv"
)
func wipeboltcard(w http.ResponseWriter, r *http.Request) {
func Wipeboltcard(w http.ResponseWriter, r *http.Request) {
if db.Get_setting("FUNCTION_INTERNAL_API") != "ENABLE" {
msg := "wipeboltcard: internal API function is not enabled"
log.Debug(msg)