mirror of
https://github.com/joohoi/acme-dns.git
synced 2024-12-22 21:03:54 +07:00
Actually call delete in /delete api (used update for testing)
This commit is contained in:
parent
b08f0831a0
commit
e328865cd0
2
api.go
2
api.go
@ -127,7 +127,7 @@ func webDeletePost(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
|
||||
delStatus = http.StatusBadRequest
|
||||
del = jsonError("bad_txt")
|
||||
} else if validSubdomain(a.Subdomain) && validTXT(a.Value) {
|
||||
err := DB.Update(a.ACMETxtPost)
|
||||
err := DB.Delete(a.ACMETxtPost)
|
||||
if err != nil {
|
||||
log.WithFields(log.Fields{"error": err.Error()}).Debug("Error while trying to delete record")
|
||||
delStatus = http.StatusInternalServerError
|
||||
|
Loading…
Reference in New Issue
Block a user