Skip to content

Commit

Permalink
Dummy Change
Browse files Browse the repository at this point in the history
  • Loading branch information
Ju-Wiluis William Rodriguez Hernandez committed Jun 24, 2024
1 parent 000fcfb commit c0793b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion handlers/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func DeleteHandler(w http.ResponseWriter, r *http.Request) {
// Validate token against Redis
_, err := redis.ValidateToken(admintoken)
if err != nil {
json.NewEncoder(w).Encode(map[string]string{"error": "Token not valid"})
writeJsonError(w, "Token not valid", http.StatusBadRequest)
return
}

Expand Down

0 comments on commit c0793b2

Please sign in to comment.