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 (
"crypto/rand"
@ -22,7 +22,7 @@ func random_hex() string {
return hex.EncodeToString(b)
}
func createboltcard(w http.ResponseWriter, r *http.Request) {
func Createboltcard(w http.ResponseWriter, r *http.Request) {
if db.Get_setting("FUNCTION_INTERNAL_API") != "ENABLE" {
msg := "createboltcard: internal API function is not enabled"
log.Debug(msg)